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:
authorvng <viktor.govako@gmail.com>2012-05-18 13:01:43 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:38:34 +0300
commit8a9e9b803e2f619262927f75c75508c0ff254599 (patch)
treef4c3bbe53cbb65953f6f4a12bd252735b594e26d /storage
parent325fff401ef5eb2bc8e8404a6d15f51329f20dd7 (diff)
[android] Fix bug with native nested Java object creation (simply avoid this).
Diffstat (limited to 'storage')
-rw-r--r--storage/storage.cpp7
-rw-r--r--storage/storage.hpp2
2 files changed, 9 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 2a08f057cb..78564ebc6b 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -33,6 +33,13 @@ namespace storage
{
const int TIndex::INVALID = -1;
+ string DebugPrint(TIndex const & r)
+ {
+ ostringstream out;
+ out << "storage::TIndex(" << r.m_group << ", " << r.m_country << ", " << r.m_region << ")";
+ return out.str();
+ }
+
// static string ErrorString(DownloadResultT res)
// {
// switch (res)
diff --git a/storage/storage.hpp b/storage/storage.hpp
index ca9ad44fe1..afae87ce11 100644
--- a/storage/storage.hpp
+++ b/storage/storage.hpp
@@ -53,6 +53,8 @@ namespace storage
}
};
+ string DebugPrint(TIndex const & r);
+
/// Can be used to store local maps and/or maps available for download
class Storage
{