src/toolsets/viewtoolset.cpp

changeset 984
a7b6f987d269
parent 981
5d5d84ab2c48
child 986
525921eae58c
--- a/src/toolsets/viewtoolset.cpp	Sun Sep 06 03:00:28 2015 +0300
+++ b/src/toolsets/viewtoolset.cpp	Sun Sep 06 03:10:03 2015 +0300
@@ -260,10 +260,10 @@
 	if (selectedObjects().size() == 1)
 		defval = selectedObjects()[0]->lineNumber();
 
-	int idx = QInputDialog::getInt (null, "Go to line", "Go to line:", defval,
+	int idx = QInputDialog::getInt (nullptr, "Go to line", "Go to line:", defval,
 		1, currentDocument()->getObjectCount(), 1, &ok);
 
-	if (not ok or (obj = currentDocument()->getObject (idx - 1)) == null)
+	if (not ok or (obj = currentDocument()->getObject (idx - 1)) == nullptr)
 		return;
 
 	currentDocument()->clearSelection();

mercurial