Skip to content

Commit

Permalink
[alpha-unito#71] solved performance issues (minor fix pt2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARMartinelli committed Feb 26, 2019
1 parent 2b210f5 commit aad4b85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions include/pico/Operators/InOut/ReadFromSocket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class ReadFromSocket : public InputOperator<std::string> {
* Copy constructor.
*/
ReadFromSocket(const ReadFromSocket &copy)
: InputOperator<std::string>(copy) {
server_name = copy.server_name;
: InputOperator<std::string>(copy), server_name(copy.server_name) {
port = copy.port;
delimiter = copy.delimiter;
}
Expand Down
4 changes: 2 additions & 2 deletions include/pico/Operators/InOut/WriteToDisk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class WriteToDisk : public OutputOperator<In> {
*
* Creates a new WriteToDisk operator by defining its kernel function.
*/
WriteToDisk(const std::string fname_, std::function<std::string(In)> func_)
WriteToDisk(const std::string& fname_, std::function<std::string(In)> func_)
: OutputOperator<In>(StructureType::BAG),
fname(fname_), //
usr_func(true),
Expand All @@ -70,7 +70,7 @@ class WriteToDisk : public OutputOperator<In> {
*
* Creates a new WriteToDisk writing by ostream.
*/
WriteToDisk(const std::string fname_)
WriteToDisk(const std::string& fname_)
: OutputOperator<In>(StructureType::BAG), fname(fname_) {}

/**
Expand Down
3 changes: 1 addition & 2 deletions include/pico/Operators/InOut/WriteToStdOut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ class WriteToStdOut : public OutputOperator<In> {
/**
* Copy constructor.
*/
WriteToStdOut(const WriteToStdOut& copy) : OutputOperator<In>(copy) {
func = copy.func;
WriteToStdOut(const WriteToStdOut& copy) : OutputOperator<In>(copy), func(copy.func) {
usr_func = copy.usr_func;
}

Expand Down

0 comments on commit aad4b85

Please sign in to comment.