Coding style

This commit is contained in:
Thorbjørn Lindeijer
2011-04-26 11:46:34 +02:00
parent 68e7c57a99
commit 701742168a

View File

@@ -209,7 +209,7 @@ void CustomDragAndDropIcon::animateDrag(int frame)
class CustomDragAndDropGuard { // This guard destroys the singleton in its destructor
public: // This should avoid that a memory leak is reported
~CustomDragAndDropGuard() {
if (CustomDragAndDrop::m_instance != 0)
if (CustomDragAndDrop::m_instance)
delete CustomDragAndDrop::m_instance;
}
};
@@ -318,4 +318,3 @@ bool CustomDragAndDrop::isAnimated()
} // namespace QmlDesignerItemLibraryDragAndDrop
} // namespave QmlDesigner