aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-11 18:22:29 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-14 12:16:43 +0100
commit33e75541a7a29fb38fe9a463760b86bfc055031a (patch)
treedf7656699a4df22645d2c210e3875d54cc082275 /sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp
parent1e47cdbd77ed2c95f520aaa8b856bb05f4076a89 (diff)
shiboken6: Fix coding style regarding pointers (Type* v -> Type *v)
As a drive-by, introduce some auto and streamline the code. Pick-to: 6.4 Change-Id: If84a3721a50b2e00b473ba78cba184f1a35d326b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp b/sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp
index 34edbb795..74a0adcea 100644
--- a/sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testreferencetopointer.cpp
@@ -12,12 +12,12 @@
void TestReferenceToPointer::testReferenceToPointerArgument()
{
- const char* cppCode ="\
+ const char cppCode[] = "\
struct A {};\n\
struct B {\n\
void dummy(A*&);\n\
};\n";
- const char* xmlCode = "\
+ const char xmlCode[] = "\
<typesystem package=\"Foo\">\n\
<object-type name='A'/>\n\
<object-type name='B'/>\n\