Mod: Redundant_string_initialization
This commit is contained in:
@@ -2157,7 +2157,7 @@ void FemMesh::writeABAQUS(const std::string &Filename, int elemParam, bool group
|
||||
|
||||
|
||||
// write volumes to file
|
||||
std::string elsetname = "";
|
||||
std::string elsetname;
|
||||
if (!elementsMapVol.empty()) {
|
||||
for (ElementsMap::iterator it = elementsMapVol.begin(); it != elementsMapVol.end(); ++it) {
|
||||
anABAQUS_Output << "** Volume elements" << std::endl;
|
||||
|
||||
@@ -511,7 +511,7 @@ const std::string &TopoShape::shapeName(TopAbs_ShapeEnum type, bool silent) {
|
||||
return _ShapeNames[type];
|
||||
if(!silent)
|
||||
FC_THROWM(Base::CADKernelError, "invalid shape type '" << type << "'");
|
||||
static std::string ret("");
|
||||
static std::string ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ Constraint::Constraint()
|
||||
: Value(0.0),
|
||||
Type(None),
|
||||
AlignmentType(Undef),
|
||||
Name(""),
|
||||
First(GeoEnum::GeoUndef),
|
||||
FirstPos(PointPos::none),
|
||||
Second(GeoEnum::GeoUndef),
|
||||
|
||||
@@ -1212,7 +1212,7 @@ private:
|
||||
throw Py::Exception();
|
||||
|
||||
std::string svg(svgcode);
|
||||
std::string empty = "";
|
||||
std::string empty;
|
||||
std::string endline = "--endOfLine--";
|
||||
std::string linebreak = "\\n";
|
||||
// removing linebreaks for regex to work
|
||||
|
||||
@@ -298,7 +298,7 @@ std::string DrawViewSpreadsheet::getSheetImage()
|
||||
int alignment = 0;
|
||||
std::string bcolor = "none";
|
||||
std::string fcolor = c.asHexString();
|
||||
std::string textstyle = "";
|
||||
std::string textstyle;
|
||||
if (cell) {
|
||||
App::Color f,b;
|
||||
std::set<std::string> st;
|
||||
|
||||
@@ -76,7 +76,6 @@ TaskSectionView::TaskSectionView(TechDraw::DrawViewPart* base) :
|
||||
m_base(base),
|
||||
m_section(nullptr),
|
||||
m_saveScale(1.0),
|
||||
m_dirName(""),
|
||||
m_doc(nullptr),
|
||||
m_createMode(true),
|
||||
m_saved(false),
|
||||
|
||||
@@ -79,7 +79,6 @@ PROPERTY_SOURCE(TechDrawGui::ViewProviderPage, Gui::ViewProviderDocumentObject)
|
||||
ViewProviderPage::ViewProviderPage()
|
||||
: m_mdiView(nullptr),
|
||||
m_docReady(true),
|
||||
m_pageName(""),
|
||||
m_graphicsView(nullptr),
|
||||
m_graphicsScene(nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user