r17949 by jghali - fix some compiler warnings

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 10 04:52:41 UTC 2012


Author: jghali
Date: Mon Dec 10 04:52:41 2012
New Revision: 17949

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17949
Log:
fix some compiler warnings

Modified:
    trunk/Scribus/scribus/ui/scmessagebox.cpp

Modified: trunk/Scribus/scribus/ui/scmessagebox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17949&path=/trunk/Scribus/scribus/ui/scmessagebox.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scmessagebox.cpp (original)
+++ trunk/Scribus/scribus/ui/scmessagebox.cpp Mon Dec 10 04:52:41 2012
@@ -186,7 +186,7 @@
 int ScMessageBox::information ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2)
 {
 	int b0=button0, b1=button1, b2=button2;
-	int buttonsUsed=swapButtonValues(b0, b1, b2);
+	/*int buttonsUsed=*/ swapButtonValues(b0, b1, b2);
 	int stdReturn=QMessageBox::information(parent, caption, text, b0, b1, b2);
 	return stdReturn /*swapReturnValues(b0, b1, b2, stdReturn, buttonsUsed)*/;
 }
@@ -203,7 +203,7 @@
 int ScMessageBox::question ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2)
 {
 	int b0=button0, b1=button1, b2=button2;
-	int buttonsUsed=swapButtonValues(b0, b1, b2);
+	/*int buttonsUsed=*/ swapButtonValues(b0, b1, b2);
 	int stdReturn=QMessageBox::question(parent, caption, text, b0, b1, b2);
 	return stdReturn /*swapReturnValues(b0, b1, b2, stdReturn, buttonsUsed)*/;
 }
@@ -220,7 +220,7 @@
 int ScMessageBox::warning ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2)
 {
 	int b0=button0, b1=button1, b2=button2;
-	int buttonsUsed=swapButtonValues(b0, b1, b2);
+	/*int buttonsUsed=*/ swapButtonValues(b0, b1, b2);
 	int stdReturn=QMessageBox::warning(parent, caption, text, b0, b1, b2);
 	return stdReturn /*swapReturnValues(b0, b1, b2, stdReturn, buttonsUsed)*/;
 }
@@ -237,7 +237,7 @@
 int ScMessageBox::critical ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2)
 {
 	int b0=button0, b1=button1, b2=button2;
-	int buttonsUsed=swapButtonValues(b0, b1, b2);
+	/*int buttonsUsed=*/ swapButtonValues(b0, b1, b2);
 	int stdReturn=QMessageBox::critical(parent, caption, text, b0, b1, b2);
 	return stdReturn /*swapReturnValues(b0, b1, b2, stdReturn, buttonsUsed)*/;
 }




More information about the scribus-commit mailing list