@ -175,7 +175,7 @@ auto ClipboardHandler::copy() -> bool
}
string text = text;
string text{};
for (GList* l = textElements; l != nullptr; l = l->next)
{
Text* e = static_cast<Text*>(l->data);
@ -2665,7 +2665,7 @@ auto Control::showSaveDialog() -> bool
void Control::updateWindowTitle()
string title = title;
string title{};
this->doc->lock();
if (doc->getFilename().isEmpty())
@ -298,7 +298,7 @@ void ToolMenuHandler::signalConnectCallback(GtkBuilder* builder, GObject* object
const gchar* handlerName, GObject* connectObject, GConnectFlags flags, ToolMenuHandler* self)
string actionName = handlerName;
string groupName = groupName;
string groupName{};
size_t pos = actionName.find(':');
if (pos != string::npos)
@ -113,7 +113,7 @@ void ToolbarData::saveToKeyFile(GKeyFile* config)
for (ToolbarEntry* e : this->contents)
string line = line;
string line{};
for (ToolbarItem* it : e->getItems())