r14740 by jghali - copy page to master page dialog : fix parameter being passed by value instead of by reference in values() function

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 16 22:50:22 CET 2010


Revision: 14740
Author: jghali
Date: 2010-02-16T21:45:40.959517Z
Commit message: copy page to master page dialog : fix parameter being passed by value instead of by reference in values() function

Changeset: 
M  /branches/Version135/Scribus/scribus/ui/copypagetomasterpagedialog.cpp
M  /branches/Version135/Scribus/scribus/ui/copypagetomasterpagedialog.h

Diffs:
Index: scribus/ui/copypagetomasterpagedialog.cpp
===================================================================
--- scribus/ui/copypagetomasterpagedialog.cpp	(revision 14739)
+++ scribus/ui/copypagetomasterpagedialog.cpp	(revision 14740)
@@ -30,7 +30,7 @@
 {
 }
 
-void CopyPageToMasterPageDialog::values(QString &pageName, bool &copyAppliedMaster, int pageLocation) const
+void CopyPageToMasterPageDialog::values(QString &pageName, bool &copyAppliedMaster, int& pageLocation) const
 {
 	pageName=nameLineEdit->text();
 	copyAppliedMaster=(copyMasterItemsCheckBox->checkState()==Qt::Checked);
Index: scribus/ui/copypagetomasterpagedialog.h
===================================================================
--- scribus/ui/copypagetomasterpagedialog.h	(revision 14739)
+++ scribus/ui/copypagetomasterpagedialog.h	(revision 14740)
@@ -18,7 +18,7 @@
 	CopyPageToMasterPageDialog(int existingMasterNamesCount, QStringList& pageLocations, int currentLocation = -1, QWidget *parent = 0);
 	~CopyPageToMasterPageDialog();
 	
-	void values(QString &pageName, bool &copyAppliedMaster, int pageLocation) const;
+	void values(QString &pageName, bool &copyAppliedMaster, int& pageLocation) const;
 
 };
 




More information about the scribus-commit mailing list