Mod: Redundant_string_initialization

This commit is contained in:
berniev
2022-08-08 23:54:39 +10:00
committed by wwmayer
parent 7aede27553
commit 5fa05ab83d
9 changed files with 6 additions and 9 deletions

View File

@@ -618,7 +618,7 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
const auto& subvals = copied ? _CopiedLink.getSubValues() : l.getSubValues();
std::set<std::string> subs(subvals.begin(), subvals.end());
static std::string none("");
static std::string none;
if (subs.empty())
subs.insert(none);
else if (subs.size() > 1)

View File

@@ -50,7 +50,7 @@ using namespace PartDesignGui;
PROPERTY_SOURCE_WITH_EXTENSIONS(PartDesignGui::ViewProvider, PartGui::ViewProviderPart)
ViewProvider::ViewProvider()
:oldWb(""), oldTip(nullptr), isSetTipIcon(false)
: oldTip(nullptr), isSetTipIcon(false)
{
PartGui::ViewProviderAttachExtension::initExtension(this);
}