r15479 by craig - Fix return false for QString return type
scribus-commit
scribus-commit at lists.scribus.net
Mon Sep 20 22:20:59 CEST 2010
Author: craig
Date: Mon Sep 20 20:20:59 2010
New Revision: 15479
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15479
Log:
Fix return false for QString return type
Modified:
trunk/Scribus/scribus/plugins/fileloader/scribus12format/scribus12format.cpp
trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
trunk/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp
trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus12format/scribus12format.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15479&path=/trunk/Scribus/scribus/plugins/fileloader/scribus12format/scribus12format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus12format/scribus12format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus12format/scribus12format.cpp Mon Sep 20 20:20:59 2010
@@ -150,7 +150,7 @@
if (!ScGzFile::readFromFile(fileName, docBytes))
{
// FIXME: Needs better error return
- return false;
+ return QString::null;
}
}
else
@@ -175,7 +175,7 @@
}
if (docText.endsWith(QChar(10)) || docText.endsWith(QChar(13)))
docText.truncate(docText.length()-1);
- return docText; return docText;
+ return docText;
}
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15479&path=/trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp Mon Sep 20 20:20:59 2010
@@ -114,7 +114,7 @@
if (!ScGzFile::readFromFile(fileName, docBytes, 4096))
{
// FIXME: Needs better error return
- return false;
+ return QString::null;
}
}
else
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15479&path=/trunk/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp Mon Sep 20 20:20:59 2010
@@ -133,7 +133,7 @@
if (!ScGzFile::readFromFile(fileName, docBytes))
{
// FIXME: Needs better error return
- return false;
+ return QString::null;
}
}
else
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15479&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Mon Sep 20 20:20:59 2010
@@ -138,7 +138,7 @@
if (!ScGzFile::readFromFile(fileName, docBytes))
{
// FIXME: Needs better error return
- return false;
+ return QString::null;
}
}
else
More information about the scribus-commit
mailing list