r14741 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:40 CET 2010


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

Changeset: 
M  /trunk/Scribus/scribus/ui/copypagetomasterpagedialog.cpp
M  /trunk/Scribus/scribus/ui/copypagetomasterpagedialog.h

Diffs:
Index: scribus/ui/copypagetomasterpagedialog.h
===================================================================
--- scribus/ui/copypagetomasterpagedialog.h	(revision 14740)
+++ scribus/ui/copypagetomasterpagedialog.h	(revision 14741)
@@ -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;
 
 };
 
Index: scribus/ui/copypagetomasterpagedialog.cpp
===================================================================
--- scribus/ui/copypagetomasterpagedialog.cpp	(revision 14740)
+++ scribus/ui/copypagetomasterpagedialog.cpp	(revision 14741)
@@ -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);




More information about the scribus-commit mailing list