forked from qt-creator/qt-creator
Coding style
This commit is contained in:
@@ -209,7 +209,7 @@ void CustomDragAndDropIcon::animateDrag(int frame)
|
|||||||
class CustomDragAndDropGuard { // This guard destroys the singleton in its destructor
|
class CustomDragAndDropGuard { // This guard destroys the singleton in its destructor
|
||||||
public: // This should avoid that a memory leak is reported
|
public: // This should avoid that a memory leak is reported
|
||||||
~CustomDragAndDropGuard() {
|
~CustomDragAndDropGuard() {
|
||||||
if (CustomDragAndDrop::m_instance != 0)
|
if (CustomDragAndDrop::m_instance)
|
||||||
delete CustomDragAndDrop::m_instance;
|
delete CustomDragAndDrop::m_instance;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -318,4 +318,3 @@ bool CustomDragAndDrop::isAnimated()
|
|||||||
|
|
||||||
} // namespace QmlDesignerItemLibraryDragAndDrop
|
} // namespace QmlDesignerItemLibraryDragAndDrop
|
||||||
} // namespave QmlDesigner
|
} // namespave QmlDesigner
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user