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 'qt/qtoglcontextfactory.cpp')
-rw-r--r--qt/qtoglcontextfactory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt/qtoglcontextfactory.cpp b/qt/qtoglcontextfactory.cpp
index 21f0224f2e..71b9da7a79 100644
--- a/qt/qtoglcontextfactory.cpp
+++ b/qt/qtoglcontextfactory.cpp
@@ -4,8 +4,8 @@
QtOGLContextFactory::QtOGLContextFactory(QWindow * surface)
: m_surface(surface)
- , m_drawContext(NULL)
- , m_uploadContext(NULL)
+ , m_drawContext(nullptr)
+ , m_uploadContext(nullptr)
{}
QtOGLContextFactory::~QtOGLContextFactory()
@@ -16,7 +16,7 @@ QtOGLContextFactory::~QtOGLContextFactory()
dp::OGLContext * QtOGLContextFactory::getDrawContext()
{
- if (m_drawContext == NULL)
+ if (m_drawContext == nullptr)
m_drawContext = new QtOGLContext(m_surface, m_uploadContext);
return m_drawContext;
@@ -24,7 +24,7 @@ dp::OGLContext * QtOGLContextFactory::getDrawContext()
dp::OGLContext * QtOGLContextFactory::getResourcesUploadContext()
{
- if (m_uploadContext == NULL)
+ if (m_uploadContext == nullptr)
m_uploadContext = new QtOGLContext(m_surface, m_drawContext);
return m_uploadContext;