r18109 by jghali - #11395: 1.4.2 doesn't compile on linux without CUPS

scribus-commit scribus-commit at lists.scribus.net
Wed Jan 23 22:01:07 UTC 2013


Author: jghali
Date: Wed Jan 23 22:01:07 2013
New Revision: 18109

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18109
Log:
#11395: 1.4.2 doesn't compile on linux without CUPS

Modified:
    branches/Version14x/Scribus/scribus/util_printer.cpp

Modified: branches/Version14x/Scribus/scribus/util_printer.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18109&path=/branches/Version14x/Scribus/scribus/util_printer.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/util_printer.cpp (original)
+++ branches/Version14x/Scribus/scribus/util_printer.cpp Wed Jan 23 22:01:07 2013
@@ -54,11 +54,11 @@
 	if ( printerInfos) free(printerInfos);
 #else
 	QString tmp;
-	QString Pcap;
 	QStringList wt;
-	if (loadText("/etc/printcap", &Pcap))
-	{
-		QDataStream ts(&Pcap, QIODevice::ReadOnly);
+	QByteArray printCap;
+	if (loadRawText("/etc/printcap", printCap))
+	{
+		QDataStream ts(&printCap, QIODevice::ReadOnly);
 		while(!ts.atEnd())
 		{
 			tmp = readLinefromDataStream(ts);




More information about the scribus-commit mailing list