r23669 by craig - Fix return type in Digester getError

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 26 21:57:20 UTC 2020


Author: craig
Date: Sun Apr 26 21:57:20 2020
New Revision: 23669

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23669
Log:
Fix return type in Digester getError

Modified:
    trunk/Scribus/scribus/desaxe/digester.cpp
    trunk/Scribus/scribus/desaxe/digester.h

Modified: trunk/Scribus/scribus/desaxe/digester.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23669&path=/trunk/Scribus/scribus/desaxe/digester.cpp
==============================================================================
--- trunk/Scribus/scribus/desaxe/digester.cpp	(original)
+++ trunk/Scribus/scribus/desaxe/digester.cpp	Sun Apr 26 21:57:20 2020
@@ -125,7 +125,7 @@
 	return m_errors.size();
 }
 
-const Xml_string Digester::getError(int i) const
+const Xml_string& Digester::getError(int i) const
 {
 	return m_errors[i];
 }

Modified: trunk/Scribus/scribus/desaxe/digester.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23669&path=/trunk/Scribus/scribus/desaxe/digester.h
==============================================================================
--- trunk/Scribus/scribus/desaxe/digester.h	(original)
+++ trunk/Scribus/scribus/desaxe/digester.h	Sun Apr 26 21:57:20 2020
@@ -112,7 +112,7 @@
 	template<class ObjType>
 		ObjType*  result();	
 	int nrOfErrors() const;
-	const Xml_string getError(int i) const;
+	const Xml_string &getError(int i) const;
 
 // called by SAX parser:
 	void beginDoc();




More information about the scribus-commit mailing list