Skip to content

Commit 5345a59

Browse files
committed
Removed std::move( ) in return of pickle load.
1 parent e895cff commit 5345a59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bindings/py/cpp_src/bindings/engine/py_Engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ namespace htm_ext
457457
std::istringstream ss(s);
458458
Network self;
459459
self.load(ss);
460-
return std::move(self);
460+
return self;
461461
}));
462462

463463
py_Network.def("link", &htm::Network::link

src/test/unit/engine/NetworkTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,16 +515,16 @@ class LinkRegion : public RegionImpl {
515515
LinkRegion(const ValueMap &params, Region *region) : RegionImpl(region) { param = 52; }
516516
LinkRegion(ArWrapper &wrapper, Region *region) : RegionImpl(region) { cereal_adapter_load(wrapper);}
517517

518-
void initialize() {}
519-
void compute() {
518+
void initialize() override {}
519+
void compute() override {
520520
// This will pass its inputs on to the outputs.
521521
Array &input_data = getInput("inputs")->getData();
522522
Array &output_data = getOutput("outputs")->getData();
523523
input_data.convertInto(output_data);
524524
}
525525
size_t getNodeOutputElementCount(const std::string &name) const override { return 5; }
526526

527-
std::string executeCommand(const std::vector<std::string> &args, Int64 index) {
527+
std::string executeCommand(const std::vector<std::string> &args, Int64 index) override {
528528
if (args[0] == "HelloWorld" && args.size() == 3)
529529
return "Hello World says: arg1=" + args[1] + " arg2=" + args[2];
530530
return "";

0 commit comments

Comments
 (0)