Skip to content

Commit

Permalink
Clean up remaining files in libstuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerkaraszewski committed Feb 10, 2025
1 parent 03d7409 commit 38ec932
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libstuff/SPerformanceTimer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <libstuff/libstuff.h>
#include "SPerformanceTimer.h"

SPerformanceTimer::SPerformanceTimer(string description, map<string, chrono::steady_clock::duration> defaults)
SPerformanceTimer::SPerformanceTimer(const string& description, const map<string, chrono::steady_clock::duration>& defaults)
: _description(description),
_lastLogStart(chrono::steady_clock::now()),
_defaults(defaults),
Expand Down
2 changes: 1 addition & 1 deletion libstuff/SPerformanceTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class SPerformanceTimer {
public:
SPerformanceTimer(string description, map<string, chrono::steady_clock::duration> defaults = {});
SPerformanceTimer(const string& description, const map<string, chrono::steady_clock::duration>& defaults = {});
void start(const string& type);
void stop();
void log(chrono::steady_clock::duration elapsed);
Expand Down
2 changes: 1 addition & 1 deletion libstuff/STCPManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ unique_ptr<STCPManager::Port> STCPManager::openPort(const string& host, int rema
return make_unique<Port>(s, host);
}

STCPManager::Port::Port(int _s, string _host) : s(_s), host(_host)
STCPManager::Port::Port(int _s, const string& _host) : s(_s), host(_host)
{
}

Expand Down
2 changes: 1 addition & 1 deletion libstuff/STCPManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct STCPManager {

class Port {
public:
Port(int _s, string _host);
Port(int _s, const string& _host);
~Port();

// Attributes
Expand Down

0 comments on commit 38ec932

Please sign in to comment.