summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-19 18:51:29 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-19 18:52:51 -0300
commitca0e17a45ed333c6b88f17df554757644d8041a4 (patch)
tree4576c2b9a78a6a43f9ed2796dffff6e5260f0ece
parentc9aef92cab51623aba0211c5805c88386c638e0a (diff)
downloadpyside-ca0e17a45ed333c6b88f17df554757644d8041a4.tar.gz
pyside-ca0e17a45ed333c6b88f17df554757644d8041a4.tar.xz
pyside-ca0e17a45ed333c6b88f17df554757644d8041a4.zip
Fix typo on function call template type.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r--libpyside/pyside.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpyside/pyside.cpp b/libpyside/pyside.cpp
index 803f41d..63889a0 100644
--- a/libpyside/pyside.cpp
+++ b/libpyside/pyside.cpp
@@ -116,9 +116,8 @@ void destroyQCoreApplication()
foreach (SbkObject* pyObj, bm.getAllPyObjects()) {
if (pyObj != pyQApp && PyObject_TypeCheck(pyObj, pyQObjectType)) {
- if (Shiboken::Wrapper::hasOwnership(pyObj)) {
- Shiboken::callCppDestructor<QObject*>(Shiboken::Wrapper::cppPointer(pyObj, Shiboken::SbkType<QObject*>()));
- }
+ if (Shiboken::Wrapper::hasOwnership(pyObj))
+ Shiboken::callCppDestructor<QObject>(Shiboken::Wrapper::cppPointer(pyObj, Shiboken::SbkType<QObject*>()));
}
}
delete app;