r23228 by jghali - Fix msvc warning C4309: truncation of constant value

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 1 03:45:21 UTC 2019


Author: jghali
Date: Tue Oct  1 03:45:21 2019
New Revision: 23228

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23228
Log:
Fix msvc warning C4309: truncation of constant value

Modified:
    trunk/Scribus/scribus/pdfwriter.cpp

Modified: trunk/Scribus/scribus/pdfwriter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23228&path=/trunk/Scribus/scribus/pdfwriter.cpp
==============================================================================
--- trunk/Scribus/scribus/pdfwriter.cpp	(original)
+++ trunk/Scribus/scribus/pdfwriter.cpp	Tue Oct  1 03:45:21 2019
@@ -275,8 +275,8 @@
 	QByteArray toUTF16(QString s)
 	{
 		QByteArray result;
-		result.append(0xfe);
-		result.append(0xff);
+		result.append('\xfe');
+		result.append('\xff');
 		for (int i = 0; i < s.length(); ++i)
 		{
 			result.append(s[i].row());




More information about the scribus-commit mailing list