diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-12-12 10:01:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-12-12 15:52:53 +0200 |
commit | 45566e7cc9ed6085907d9048f9dfe9623fb9ee76 (patch) | |
tree | 874e11b1f3a22ec104105fed2586e7b62db7302a /chart2 | |
parent | 3d17a4088283e28076d6794a429ed4a766fafa1f (diff) |
loplugin:unreffun and loplugin:externandnotdefined
Change-Id: I69f11aa5dd81834aa916a66437d8c091cdf245f3
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 5dc8dda7aa16..f645333c1933 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -1072,7 +1072,9 @@ public: virtual void scroll(long nDelta) override; virtual void contextDestroyed() override; +#if HAVE_FEATURE_OPENGL const OpenGLWindow* getOpenGLWindow() const; +#endif void updateOpenGLWindow(); private: ChartView* mpView; @@ -1120,11 +1122,15 @@ void GL2DRenderer::contextDestroyed() mbContextDestroyed = true; } +#if HAVE_FEATURE_OPENGL + const OpenGLWindow* GL2DRenderer::getOpenGLWindow() const { return mpWindow; } +#endif + void GL2DRenderer::updateOpenGLWindow() { if(mbContextDestroyed) |