Skip to content

Commit 8b998d3

Browse files
committed
more format reverts
1 parent 9bb3c9b commit 8b998d3

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

src/viam/examples/modules/complex/gizmo/impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace viam::sdk;
1414
// `validate` method that checks config validity.
1515
class MyGizmo : public Gizmo, public Reconfigurable {
1616
public:
17-
MyGizmo(std::string name, std::string arg1) : Gizmo(std::move(name)), arg1_(std::move(arg1)) {};
17+
MyGizmo(std::string name, std::string arg1) : Gizmo(std::move(name)), arg1_(std::move(arg1)){};
1818
MyGizmo(const Dependencies& deps, const ResourceConfig& cfg) : Gizmo(cfg.name()) {
1919
this->reconfigure(deps, cfg);
2020
};

src/viam/sdk/config/resource.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ viam::app::v1::ComponentConfig ResourceConfig::to_proto() const {
138138
return proto_cfg;
139139
}
140140

141-
ResourceConfig::ResourceConfig(std::string type)
142-
: api_({kRDK, type, ""}), type_(std::move(type)) {};
141+
ResourceConfig::ResourceConfig(std::string type) : api_({kRDK, type, ""}), type_(std::move(type)){};
143142

144143
} // namespace sdk
145144
} // namespace viam

src/viam/sdk/services/private/generic_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace impl {
1818
GenericServiceClient::GenericServiceClient(std::string name, std::shared_ptr<grpc::Channel> channel)
1919
: GenericService(std::move(name)),
2020
stub_(viam::service::generic::v1::GenericService::NewStub(channel)),
21-
channel_(std::move(channel)) {};
21+
channel_(std::move(channel)){};
2222

2323
ProtoStruct GenericServiceClient::do_command(const ProtoStruct& command) {
2424
return make_client_helper(this, *stub_, &StubType::DoCommand)

src/viam/sdk/services/private/generic_client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GenericServiceClient : public GenericService {
3030
GenericServiceClient(
3131
std::string name,
3232
std::unique_ptr<viam::service::generic::v1::GenericService::StubInterface> stub)
33-
: GenericService(std::move(name)), stub_(std::move(stub)) {};
33+
: GenericService(std::move(name)), stub_(std::move(stub)){};
3434

3535
private:
3636
using StubType = viam::service::generic::v1::GenericService::StubInterface;

src/viam/sdk/services/private/generic_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace sdk {
99
namespace impl {
1010

1111
GenericServiceServer::GenericServiceServer(std::shared_ptr<ResourceManager> manager)
12-
: ResourceServer(std::move(manager)) {};
12+
: ResourceServer(std::move(manager)){};
1313

1414
::grpc::Status GenericServiceServer::DoCommand(
1515
::grpc::ServerContext*,

src/viam/sdk/services/private/motion_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace impl {
1919
MotionClient::MotionClient(std::string name, std::shared_ptr<grpc::Channel> channel)
2020
: Motion(std::move(name)),
2121
stub_(service::motion::v1::MotionService::NewStub(channel)),
22-
channel_(std::move(channel)) {};
22+
channel_(std::move(channel)){};
2323

2424
bool MotionClient::move(const pose_in_frame& destination,
2525
const Name& component_name,

src/viam/sdk/services/private/motion_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace sdk {
1515
namespace impl {
1616

1717
MotionServer::MotionServer(std::shared_ptr<ResourceManager> manager)
18-
: ResourceServer(std::move(manager)) {};
18+
: ResourceServer(std::move(manager)){};
1919

2020
::grpc::Status MotionServer::Move(::grpc::ServerContext*,
2121
const ::viam::service::motion::v1::MoveRequest* request,

src/viam/sdk/tests/mocks/mock_gantry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ std::vector<double> MockGantry::get_position(const sdk::ProtoStruct&) {
2020

2121
void MockGantry::move_to_position(const std::vector<sdk::Gantry::movement_coordinate>& coordinates,
2222
const sdk::ProtoStruct&) {
23-
peek_positions ={};
23+
peek_positions = {};
2424
for (const auto& coord : coordinates)
2525
peek_positions.push_back(coord.position_mm);
2626
}

0 commit comments

Comments
 (0)