Skip to content

Commit

Permalink
Merge pull request assimp#2658 from escherstair/fix-codacy-issues
Browse files Browse the repository at this point in the history
Fix codacy issues - part assimp#5
  • Loading branch information
kimkulling authored Sep 19, 2019
2 parents b6edcb3 + d4101bb commit 83df4f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
6 changes: 1 addition & 5 deletions code/FBX/FBXExportProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ namespace FBX {

FBXExportProperty::FBXExportProperty(bool v)
: type('C')
, data(1) {
data = {
uint8_t(v)
};
}
, data(1, uint8_t(v)) {}

FBXExportProperty::FBXExportProperty(int16_t v)
: type('Y')
Expand Down
5 changes: 2 additions & 3 deletions code/Importer/IFC/IFCCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,9 @@ class TrimmedCurve : public BoundedCurve {
public:
// --------------------------------------------------
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;

// for some reason, trimmed curves can either specify a parametric value
Expand Down
5 changes: 1 addition & 4 deletions code/Obj/ObjFileImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ using namespace std;
ObjFileImporter::ObjFileImporter()
: m_Buffer()
, m_pRootObject( nullptr )
, m_strAbsPath( "" ) {
DefaultIOSystem io;
m_strAbsPath = io.getOsSeparator();
}
, m_strAbsPath( std::string(1, DefaultIOSystem().getOsSeparator()) ) {}

// ------------------------------------------------------------------------------------------------
// Destructor.
Expand Down
4 changes: 2 additions & 2 deletions contrib/gtest/test/gtest-param-test_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator,
<< ", expected_values[i] is " << PrintValue(expected_values[i])
<< ", *it is " << PrintValue(*it)
<< ", and 'it' is an iterator created with the copy constructor.\n";
it++;
++it;
}
EXPECT_TRUE(it == generator.end())
<< "At the presumed end of sequence when accessing via an iterator "
Expand All @@ -161,7 +161,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator,
<< ", expected_values[i] is " << PrintValue(expected_values[i])
<< ", *it is " << PrintValue(*it)
<< ", and 'it' is an iterator created with the copy constructor.\n";
it++;
++it;
}
EXPECT_TRUE(it == generator.end())
<< "At the presumed end of sequence when accessing via an iterator "
Expand Down

0 comments on commit 83df4f4

Please sign in to comment.