Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: gnif/ARMT
base: d748c4ba20
...
head fork: gnif/ARMT
compare: b03eff018d
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 6 deletions.
  1. +1 −1  Makefile
  2. +3 −4 common/CCommon.cc
  3. +1 −1  common/CCommon.h
View
2  Makefile
@@ -1,4 +1,4 @@
-CC = g++
+CC = g++-4.3
OBJCOPY = objcopy
CFLAGS = -Wall -D__STDC_LIMIT_MACROS
OBJECTS = armt.o
View
7 common/CCommon.cc
@@ -121,11 +121,10 @@ std::string CCommon::IntToStr(int value, int base/* = 10*/)
return buf;
}
-std::string CCommon::StrToLower(const std::string &string)
+std::string CCommon::StrToLower(std::string string)
{
- std::string result = string;
- std::transform(result.begin(), result.end(), result.begin(), ::tolower);
- return result;
+ std::transform(string.begin(), string.end(), string.begin(), ::tolower);
+ return string;
}
bool CCommon::IsFile(const std::string &path)
View
2  common/CCommon.h
@@ -40,7 +40,7 @@ class CCommon
static bool IsBE() { return m_isBE; }
static void Trim (std::string &s);
static std::string IntToStr(int value, int base = 10);
- static std::string StrToLower(const std::string &string);
+ static std::string StrToLower(std::string string);
static const std::string &GetExePath () { return m_exePath ; }
static const std::string &GetBasePath() { return m_basePath; }

No commit comments for this range

Something went wrong with that request. Please try again.