diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-08 19:19:45 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-12 13:48:33 -0300 |
commit | 4623048983f0c230c47909545cb457018d97951b (patch) | |
tree | 2cf370dc178e3be2fb793fc52adbfd40169c5524 /libshiboken | |
parent | 3b61b201210760c922a293f79f5904ba51cda4e2 (diff) |
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 'libshiboken')
-rw-r--r-- | libshiboken/basewrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index 92b6b1d3e..dde7a7151 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -426,7 +426,7 @@ static PyObject* SbkBaseWrapper_get_dict(SbkBaseWrapper* obj) } static PyGetSetDef SbkBaseWrapper_getsetlist[] = { - {"__dict__", (getter)SbkBaseWrapper_get_dict, 0}, + {const_cast<char*>("__dict__"), (getter)SbkBaseWrapper_get_dict, 0}, {0} // Sentinel }; |