r22817 by jghali - Do not create a variable to call a static member function

scribus-commit scribus-commit at lists.scribus.net
Wed Jan 23 20:46:22 UTC 2019


Author: jghali
Date: Wed Jan 23 20:46:22 2019
New Revision: 22817

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22817
Log:
Do not create a variable to call a static member function

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22817&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Wed Jan 23 20:46:22 2019
@@ -8383,8 +8383,7 @@
 
 bool ScribusMainWindow::scanDocument()
 {
-	DocumentChecker dc;
-	return dc.checkDocument(doc);
+	return DocumentChecker::checkDocument(doc);
 }
 
 void ScribusMainWindow::slotStoryEditor(bool fromTable)




More information about the scribus-commit mailing list