Introduce QBStr BSTR RAII wrapper


Use of base BSTR instances can be error prone and verbose. This patch
introduces a QBStr class that wraps the Microsoft BSTR string type.

Code that can be tested is updated to use the new QBStr instead of bare
BSTR instances.

Change-Id: If55e7d18426d1751357c9b4512abcfc4d10afbb4
Reviewed-by: Pavel Dubsky <pavel.dubsky@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commit4d5831936e3bf63aa85658563682d51fe6ba4b07
parentd62d13f4a2cd5619ab2e5c1044b7cfa6819a789b
authorJøger Hansegård <joger.hansegard@qt.io>
committerJøger Hansegård <joger.hansegard@qt.io>
commit timeMon, 13 May 2024 21:48:42 +0200