Merge pull request #2658 from escherstair/fix-codacy-issues
Fix codacy issues - part #5pull/2617/head
commit
83df4f4104
|
@ -59,11 +59,7 @@ namespace FBX {
|
||||||
|
|
||||||
FBXExportProperty::FBXExportProperty(bool v)
|
FBXExportProperty::FBXExportProperty(bool v)
|
||||||
: type('C')
|
: type('C')
|
||||||
, data(1) {
|
, data(1, uint8_t(v)) {}
|
||||||
data = {
|
|
||||||
uint8_t(v)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
FBXExportProperty::FBXExportProperty(int16_t v)
|
FBXExportProperty::FBXExportProperty(int16_t v)
|
||||||
: type('Y')
|
: type('Y')
|
||||||
|
|
|
@ -311,10 +311,9 @@ class TrimmedCurve : public BoundedCurve {
|
||||||
public:
|
public:
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
TrimmedCurve(const Schema_2x3::IfcTrimmedCurve& entity, ConversionData& conv)
|
TrimmedCurve(const Schema_2x3::IfcTrimmedCurve& entity, ConversionData& conv)
|
||||||
: BoundedCurve(entity,conv)
|
: BoundedCurve(entity,conv),
|
||||||
|
base(std::shared_ptr<const Curve>(Curve::Convert(entity.BasisCurve,conv)))
|
||||||
{
|
{
|
||||||
base = std::shared_ptr<const Curve>(Curve::Convert(entity.BasisCurve,conv));
|
|
||||||
|
|
||||||
typedef std::shared_ptr<const STEP::EXPRESS::DataType> Entry;
|
typedef std::shared_ptr<const STEP::EXPRESS::DataType> Entry;
|
||||||
|
|
||||||
// for some reason, trimmed curves can either specify a parametric value
|
// for some reason, trimmed curves can either specify a parametric value
|
||||||
|
|
|
@ -79,10 +79,7 @@ using namespace std;
|
||||||
ObjFileImporter::ObjFileImporter()
|
ObjFileImporter::ObjFileImporter()
|
||||||
: m_Buffer()
|
: m_Buffer()
|
||||||
, m_pRootObject( nullptr )
|
, m_pRootObject( nullptr )
|
||||||
, m_strAbsPath( "" ) {
|
, m_strAbsPath( std::string(1, DefaultIOSystem().getOsSeparator()) ) {}
|
||||||
DefaultIOSystem io;
|
|
||||||
m_strAbsPath = io.getOsSeparator();
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Destructor.
|
// Destructor.
|
||||||
|
|
|
@ -141,7 +141,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator,
|
||||||
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
||||||
<< ", *it is " << PrintValue(*it)
|
<< ", *it is " << PrintValue(*it)
|
||||||
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
EXPECT_TRUE(it == generator.end())
|
EXPECT_TRUE(it == generator.end())
|
||||||
<< "At the presumed end of sequence when accessing via an iterator "
|
<< "At the presumed end of sequence when accessing via an iterator "
|
||||||
|
@ -161,7 +161,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator,
|
||||||
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
||||||
<< ", *it is " << PrintValue(*it)
|
<< ", *it is " << PrintValue(*it)
|
||||||
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
EXPECT_TRUE(it == generator.end())
|
EXPECT_TRUE(it == generator.end())
|
||||||
<< "At the presumed end of sequence when accessing via an iterator "
|
<< "At the presumed end of sequence when accessing via an iterator "
|
||||||
|
|
Loading…
Reference in New Issue