r24165 by jghali - #16311: in cmdobj.cpp, scribus_pasteobject() defines char* name but never uses it

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 3 20:28:02 UTC 2020


Author: jghali
Date: Tue Nov  3 20:28:02 2020
New Revision: 24165

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24165
Log:
#16311: in cmdobj.cpp, scribus_pasteobject() defines char* name but never uses it

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24165&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp	Tue Nov  3 20:28:02 2020
@@ -1031,7 +1031,6 @@
 
 PyObject *scribus_pasteobject(PyObject * /* self */, PyObject * /*args*/)
 {
-	char* name = const_cast<char*>("");
 	if (!checkHaveDocument())
 		return nullptr;
 
@@ -1055,7 +1054,6 @@
 
 PyObject *scribus_pasteobjects(PyObject * /* self */, PyObject * /*args*/)
 {
-	char* name = const_cast<char*>("");
 	if (!checkHaveDocument())
 		return nullptr;
 

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24165&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp	Tue Nov  3 20:28:02 2020
@@ -1031,7 +1031,6 @@
 
 PyObject *scribus_pasteobject(PyObject * /* self */, PyObject * /*args*/)
 {
-	char* name = const_cast<char*>("");
 	if (!checkHaveDocument())
 		return nullptr;
 
@@ -1055,7 +1054,6 @@
 
 PyObject *scribus_pasteobjects(PyObject * /* self */, PyObject * /*args*/)
 {
-	char* name = const_cast<char*>("");
 	if (!checkHaveDocument())
 		return nullptr;
 




More information about the scribus-commit mailing list