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>
| commit | 4d5831936e3bf63aa85658563682d51fe6ba4b07 |
| parent | d62d13f4a2cd5619ab2e5c1044b7cfa6819a789b |
| author | Jøger Hansegård <joger.hansegard@qt.io> |
| committer | Jøger Hansegård <joger.hansegard@qt.io> |
| commit time | Mon, 13 May 2024 21:48:42 +0200 |
- M src/activeqt/axbase/CMakeLists.txt
- M src/activeqt/axbase/qaxutils.cpp
- A src/activeqt/axbase/qbstr_p.h
- M src/activeqt/container/qaxbase.cpp
- M src/activeqt/container/qaxscript.cpp
- M tests/auto/CMakeLists.txt
- M tests/auto/conversion/comutil_p.h
- A tests/auto/qbstr/CMakeLists.txt
- A tests/auto/qbstr/tst_qbstr.cpp