23 lines
678 B
Diff
23 lines
678 B
Diff
--- scribus/colorm.cpp
|
|
+++ scribus/colorm.cpp
|
|
@@ -210,7 +210,7 @@
|
|
ColorListBox::ColorListBox(QWidget * parent, const char * name, WFlags f)
|
|
: QListBox(parent, name, f)
|
|
{
|
|
- if (name == "")
|
|
+ if (name[0] == 0)
|
|
setName("ColorListBox");
|
|
}
|
|
|
|
--- scribus/plugins/scriptplugin/cmdcolor.cpp
|
|
+++ scribus/plugins/scriptplugin/cmdcolor.cpp
|
|
@@ -147,7 +147,7 @@
|
|
char *Repl = const_cast<char*>(CommonStrings::None.latin1());
|
|
if (!PyArg_ParseTuple(args, "es|es", "utf-8", &Name, "utf-8", &Repl))
|
|
return NULL;
|
|
- if (Name == "")
|
|
+ if (Name[0] == 0)
|
|
{
|
|
PyErr_SetString(PyExc_ValueError, QObject::tr("Cannot delete a color with an empty name.","python error"));
|
|
return NULL;
|