Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/src_point.cpp')
-rw-r--r--base/src_point.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/base/src_point.cpp b/base/src_point.cpp
index 663054f229..4230eed080 100644
--- a/base/src_point.cpp
+++ b/base/src_point.cpp
@@ -3,14 +3,12 @@
#include <algorithm>
#include <sstream>
-
namespace my
{
-
void SrcPoint::TruncateFileName()
{
size_t const maxLen = 10000;
- char const * p[] = { m_fileName, m_fileName };
+ char const * p[] = {m_fileName, m_fileName};
for (size_t i = 0; i < maxLen && m_fileName[i]; ++i)
{
if (m_fileName[i] == '\\' || m_fileName[i] == '/')
@@ -22,9 +20,7 @@ void SrcPoint::TruncateFileName()
m_fileName = p[1];
}
-} // namespace my
-
-std::string DebugPrint(my::SrcPoint const & srcPoint)
+std::string DebugPrint(SrcPoint const & srcPoint)
{
std::ostringstream out;
if (srcPoint.Line() > 0)
@@ -32,3 +28,4 @@ std::string DebugPrint(my::SrcPoint const & srcPoint)
<< srcPoint.Postfix() << " ";
return out.str();
}
+} // namespace my