Skip to content

Commit

Permalink
Use const reference for function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Dec 13, 2013
1 parent 8207dcb commit a2526ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dart/common/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Timer::~Timer() {
}

#if WIN32
double Timer::_convLIToSecs(LARGE_INTEGER& _L) {
double Timer::_convLIToSecs(const LARGE_INTEGER& _L) {
return (static_cast<double>(_L.QuadPart)
/ static_cast<double>(mFrequency.QuadPart));
}
Expand Down
2 changes: 1 addition & 1 deletion dart/common/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Timer {

#if WIN32
LARGE_INTEGER mFrequency;
double _convLIToSecs(LARGE_INTEGER& _L);
double _convLIToSecs(const LARGE_INTEGER& _L);
#endif

double _subtractTimes(double _endTime, double _startTime);
Expand Down

0 comments on commit a2526ce

Please sign in to comment.