Skip to content

Commit e868f99

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b566c9f commit e868f99

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

include/dynamic-graph/command-setter.t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Setter<E, std::uint64_t> : public Command {
106106

107107
template <class E>
108108
Setter<E, std::uint64_t>::Setter(E &entity, SetterMethod setterMethod,
109-
const std::string &docString)
109+
const std::string &docString)
110110
: Command(entity, boost::assign::list_of(Value::UNSIGNEDLONGINT),
111111
docString),
112112
setterMethod_(setterMethod) {}
@@ -175,7 +175,7 @@ class Setter<E, std::int64_t> : public Command {
175175

176176
template <class E>
177177
Setter<E, std::int64_t>::Setter(E &entity, SetterMethod setterMethod,
178-
const std::string &docString)
178+
const std::string &docString)
179179
: Command(entity, boost::assign::list_of(Value::LONGINT), docString),
180180
setterMethod_(setterMethod) {}
181181

include/dynamic-graph/value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include <dynamic-graph/linear-algebra.h>
1111

12-
#include <cstdint>
1312
#include <cassert>
13+
#include <cstdint>
1414
#include <string>
1515
#include <typeinfo>
1616
#include <vector>

src/command/value.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ EitherType::~EitherType() {
2222

2323
EitherType::operator bool() const { return value_->boolValue(); }
2424
EitherType::operator std::uint32_t() const { return value_->unsignedValue(); }
25-
EitherType::operator std::uint64_t() const { return value_->unsignedlongintValue(); }
25+
EitherType::operator std::uint64_t() const {
26+
return value_->unsignedlongintValue();
27+
}
2628
EitherType::operator std::int32_t() const { return value_->intValue(); }
2729
EitherType::operator std::int64_t() const { return value_->longintValue(); }
2830
EitherType::operator float() const { return value_->floatValue(); }
@@ -87,7 +89,8 @@ Value::Value(const std::uint32_t &value)
8789
: type_(UNSIGNED), value_(new std::uint32_t(value)) {}
8890
Value::Value(const std::uint64_t &value)
8991
: type_(UNSIGNEDLONGINT), value_(new std::uint64_t(value)) {}
90-
Value::Value(const std::int32_t &value) : type_(INT), value_(new std::int32_t(value)) {}
92+
Value::Value(const std::int32_t &value)
93+
: type_(INT), value_(new std::int32_t(value)) {}
9194
Value::Value(const std::int64_t &value)
9295
: type_(LONGINT), value_(new int64_t(value)) {}
9396
Value::Value(const float &value) : type_(FLOAT), value_(new float(value)) {}

0 commit comments

Comments
 (0)