diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2013-10-23 18:18:54 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:03:54 +0300 |
commit | f10aa2a91309a9fa50d04cbb2f549d19d17ed260 (patch) | |
tree | 3fb80b2b40420dca6277507fe6e08a51b1997425 /drape/attribute_provider.cpp | |
parent | 3726e51c4ad7c7c85b99f50aa94149df3be52fc9 (diff) |
[drape] tests for attribute provider
Diffstat (limited to 'drape/attribute_provider.cpp')
-rw-r--r-- | drape/attribute_provider.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drape/attribute_provider.cpp b/drape/attribute_provider.cpp index fbeb4827df..6c677ba7b6 100644 --- a/drape/attribute_provider.cpp +++ b/drape/attribute_provider.cpp @@ -4,7 +4,7 @@ #ifdef DEBUG #define INIT_CHECK_INFO(x) m_checkInfo = vector<bool>((vector<bool>::size_type)(x), false); #define CHECK_STREAMS CheckStreams() - #define INIT_STREAM(x) InitStream((x)) + #define INIT_STREAM(x) InitCheckStream((x)) #else #include "../../base/macros.hpp" #define INIT_CHECK_INFO(x) UNUSED_VALUE((x)) @@ -28,7 +28,6 @@ bool AttributeProvider::IsDataExists() const uint16_t AttributeProvider::GetVertexCount() const { - CHECK_STREAMS; return m_vertexCount; } @@ -85,7 +84,7 @@ void AttributeProvider::CheckStreams() const ("Not all streams initialized")); } -void AttributeProvider::InitStream(uint8_t streamIndex) +void AttributeProvider::InitCheckStream(uint8_t streamIndex) { m_checkInfo[streamIndex] = true; } |