diff --git a/src/graphics/ui/elements/InventoryView.cpp b/src/graphics/ui/elements/InventoryView.cpp index de121327..14b7a59b 100644 --- a/src/graphics/ui/elements/InventoryView.cpp +++ b/src/graphics/ui/elements/InventoryView.cpp @@ -126,7 +126,7 @@ void SlotView::draw(const DrawContext* pctx, Assets* assets) { langs::get(util::str2wstr_utf8(def->caption)) ); } else { - tooltip = L""; + tooltip.clear(); } } prevItem = itemid; diff --git a/src/logic/scripting/scripting_functional.cpp b/src/logic/scripting/scripting_functional.cpp index b3ad82af..557ece1d 100644 --- a/src/logic/scripting/scripting_functional.cpp +++ b/src/logic/scripting/scripting_functional.cpp @@ -66,7 +66,7 @@ wstringsupplier scripting::create_wstring_supplier( auto str = lua::require_wstring(L, -1); lua::pop(L); return str; } - return std::wstring(L""); + return std::wstring(); }; } diff --git a/src/world/World.cpp b/src/world/World.cpp index 37379852..c8ad542a 100644 --- a/src/world/World.cpp +++ b/src/world/World.cpp @@ -201,7 +201,7 @@ void World::deserialize(dynamic::Map* root) { generator = root->get("generator", generator); seed = root->get("seed", seed); - if (generator == "") { + if (generator.empty()) { generator = WorldGenerators::getDefaultGeneratorID(); } if (auto verobj = root->map("version")) {