Skip to content

Commit bd53ac6

Browse files
committed
Fix a few Sonar warnings
1 parent 72a8ea2 commit bd53ac6

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎ElementsExamples/src/CProgram/util.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ extern int MY_CONST;
2020
}
2121
#endif
2222

23-
#endif // ELEMENTSEXAMPLES_SRC_CPROGRAM_UTIL_H_
23+
#endif // ELEMENTSEXAMPLES_SRC_CPROGRAM_UTIL_H_

‎ElementsKernel/ElementsKernel/Environment.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ELEMENTS_API Environment {
4343
class Variable {
4444

4545
public:
46-
Variable() = delete;
46+
Variable() = delete ;
4747
Variable(Environment& env, const std::string& index): m_env(env), m_index(index) {}
4848
Variable(const Variable& other);
4949
Variable(Variable&& other);

‎ElementsKernel/ElementsKernel/FuncPtrCast.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ inline DESTPTR FuncPtrCast(SRCPTR ptr) {
6060
#endif
6161
}
6262

63-
64-
6563
} // namespace System
6664
} // namespace Elements
6765

‎ElementsKernel/ElementsKernel/Program.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ class ELEMENTS_API Program {
7676
* @return
7777
* a pair of BOOST options description and positional_options_description
7878
*/
79-
virtual std::pair<boost::program_options::options_description, boost::program_options::positional_options_description> defineProgramArguments();
79+
virtual std::pair<boost::program_options::options_description,
80+
boost::program_options::positional_options_description> defineProgramArguments();
8081

8182
/**
8283
* @brief

‎ElementsKernel/ElementsKernel/Real.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ inline bool isGreaterOrEqual(const double& left, const double& right)
502502
* @return
503503
* true if the numbers are equal (or cannot be distinguished) and false otherwise.
504504
*/
505-
ELEMENTS_API bool almostEqual2sComplement(const float& left, const float& right, const int& max_ulps=FLT_DEFAULT_MAX_ULPS);
505+
ELEMENTS_API bool almostEqual2sComplement(const float& left, const float& right,
506+
const int& max_ulps=FLT_DEFAULT_MAX_ULPS);
506507
/**
507508
* @brief
508509
* This function compare 2 doubles with a relative tolerance
@@ -519,7 +520,8 @@ ELEMENTS_API bool almostEqual2sComplement(const float& left, const float& right,
519520
* @return
520521
* true if the numbers are equal (or cannot be distinguished) and false otherwise.
521522
*/
522-
ELEMENTS_API bool almostEqual2sComplement(const double& left, const double& right, const int& max_ulps=DBL_DEFAULT_MAX_ULPS);
523+
ELEMENTS_API bool almostEqual2sComplement(const double& left, const double& right,
524+
const int& max_ulps=DBL_DEFAULT_MAX_ULPS);
523525

524526
/**
525527
* @brief

‎ElementsKernel/python/ElementsKernel/Path.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def multiPathAppend(initial_locations, suffixes):
8888
result = []
8989

9090
for l in initial_locations:
91-
result += [ os.path.join(l, s) for s in suffixes]
91+
result += [os.path.join(l, s) for s in suffixes]
9292

9393
return result
9494

0 commit comments

Comments
 (0)