r24528 by jghali - Code style fixes
scribus-commit
scribus-commit at lists.scribus.net
Fri Feb 26 23:10:51 UTC 2021
Author: jghali
Date: Fri Feb 26 23:10:51 2021
New Revision: 24528
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24528
Log:
Code style fixes
Modified:
trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
trunk/Scribus/scribus/plugins/scriptplugin/cmdgetsetprop.cpp
Modified: trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24528&path=/trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp Fri Feb 26 23:10:51 2021
@@ -1588,7 +1588,7 @@
{
int startData = fname.indexOf(",");
QString dataType = fname.left(startData);
- fname.remove(0, startData+1);
+ fname.remove(0, startData + 1);
QByteArray ba;
ba.append(fname);
if (dataType.contains("base64"))
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetsetprop.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24528&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetsetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetsetprop.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetsetprop.cpp Fri Feb 26 23:10:51 2021
@@ -410,7 +410,7 @@
else if (PyUnicode_Check(objValue))
{
// Get a pointer to the internal buffer of the Py_Unicode object, which is UCS2 formatted
- const unsigned short * ucs2Data = (const unsigned short *)PyUnicode_AS_UNICODE(objValue);
+ const unsigned short * ucs2Data = (const unsigned short *) PyUnicode_AS_UNICODE(objValue);
// and make a new QString from it (the string is copied)
success = obj->setProperty(propertyName, QString::fromUtf16(ucs2Data));
}
More information about the scribus-commit
mailing list