summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-08 19:19:45 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-04-12 13:48:33 -0300
commit4623048983f0c230c47909545cb457018d97951b (patch)
tree2cf370dc178e3be2fb793fc52adbfd40169c5524 /tests/samplebinding/typesystem_sample.xml
parent3b61b201210760c922a293f79f5904ba51cda4e2 (diff)
downloadshiboken-4623048983f0c230c47909545cb457018d97951b.tar.gz
shiboken-4623048983f0c230c47909545cb457018d97951b.tar.xz
shiboken-4623048983f0c230c47909545cb457018d97951b.zip
Remove warnings about "deprecated conversion from string constant to 'char*'".
These warnings are due to the Python C API using a char* as parameter when it should const char*. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 8a36ec05..cfe709a6 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -880,7 +880,7 @@
%0 = new %TYPE();
</inject-code>
<inject-code class="target" position="end">
- Shiboken::AutoDecRef result(PyObject_CallMethod(%PYSELF, "setHeight", "i", 2));
+ Shiboken::AutoDecRef result(PyObject_CallMethod(%PYSELF, const_cast&lt;char*>("setHeight"), const_cast&lt;char*>("i"), 2));
</inject-code>
</add-function>
</value-type>