Gui: Redundant_string_initialization

This commit is contained in:
berniev
2022-08-08 23:42:58 +10:00
committed by wwmayer
parent e5d4c09ce2
commit 50ee321fa8
2 changed files with 1 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ PyObject* CommandPy::getInfo(PyObject *args)
const char* whatsThisTxt = cmd->getWhatsThis();
const char* statustipTxt = cmd->getStatusTip();
const char* pixMapTxt = cmd->getPixmap();
std::string shortcutTxt = "";
std::string shortcutTxt;
if (action)
shortcutTxt = action->shortcut().toString().toStdString();

View File

@@ -205,7 +205,6 @@ using namespace Gui;
TYPESYSTEM_SOURCE_ABSTRACT(Gui::Workbench, Base::BaseClass)
Workbench::Workbench()
: _name("")
{
}