Base/App: fix warnings from code analysers:
* convert old-style-casts to explicit C++ casts where possible * make some implicit conversions explicit
This commit is contained in:
@@ -40,12 +40,12 @@ TYPESYSTEM_SOURCE_ABSTRACT(Data::Segment , Base::BaseClass)
|
||||
TYPESYSTEM_SOURCE_ABSTRACT(Data::ComplexGeoData , Base::Persistence)
|
||||
|
||||
|
||||
ComplexGeoData::ComplexGeoData(void)
|
||||
ComplexGeoData::ComplexGeoData()
|
||||
:Tag(0)
|
||||
{
|
||||
}
|
||||
|
||||
ComplexGeoData::~ComplexGeoData(void)
|
||||
ComplexGeoData::~ComplexGeoData()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -56,10 +56,10 @@ Data::Segment* ComplexGeoData::getSubElementByName(const char* name) const
|
||||
std::string::size_type pos = element.find_first_of("0123456789");
|
||||
if (pos != std::string::npos) {
|
||||
index = std::atoi(element.substr(pos).c_str());
|
||||
element = element.substr(0,pos);
|
||||
element = element.substr(0, pos);
|
||||
}
|
||||
|
||||
return getSubElement(element.c_str(),index);
|
||||
return getSubElement(element.c_str(), static_cast<unsigned long>(index));
|
||||
}
|
||||
|
||||
void ComplexGeoData::applyTransform(const Base::Matrix4D& rclTrf)
|
||||
|
||||
Reference in New Issue
Block a user