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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-04-16 14:48:30 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:04:17 +0300
commit734b0a10b024dac63a26710522683fdb0209a0b5 (patch)
tree96554add69ea14b6d9e2ed13eb17fdeb3a763eb4 /drape/attribute_provider.cpp
parent4d6dcfc596953ef570d1d51f11416cdd5298999c (diff)
Pointers refactoring
Diffstat (limited to 'drape/attribute_provider.cpp')
-rw-r--r--drape/attribute_provider.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/drape/attribute_provider.cpp b/drape/attribute_provider.cpp
index ef0655b136..95144450e2 100644
--- a/drape/attribute_provider.cpp
+++ b/drape/attribute_provider.cpp
@@ -43,7 +43,7 @@ void const * AttributeProvider::GetRawPointer(uint8_t streamIndex)
{
ASSERT_LESS(streamIndex, GetStreamCount(), ());
CHECK_STREAMS;
- return m_streams[streamIndex].m_data.GetRaw();
+ return m_streams[streamIndex].m_data;
}
BindingInfo const & AttributeProvider::GetBindingInfo(uint8_t streamIndex) const
@@ -64,8 +64,8 @@ void AttributeProvider::Advance(uint16_t vertexCount)
{
BindingInfo const & info = m_streams[i].m_binding;
uint32_t offset = vertexCount * info.GetElementSize();
- void * rawPointer = m_streams[i].m_data.GetRaw();
- m_streams[i].m_data = MakeStackRefPointer((void *)(((uint8_t *)rawPointer) + offset));
+ void * rawPointer = m_streams[i].m_data;
+ m_streams[i].m_data = make_ref((void *)(((uint8_t *)rawPointer) + offset));
}
}
@@ -74,7 +74,7 @@ void AttributeProvider::Advance(uint16_t vertexCount)
void AttributeProvider::InitStream(uint8_t streamIndex,
BindingInfo const & bindingInfo,
- RefPointer<void> data)
+ ref_ptr<void> data)
{
ASSERT_LESS(streamIndex, GetStreamCount(), ());
AttributeStream s;