cleanup: const-ify a few queries
authorCory Fields <theuni-nospam-@xbmc.org>
Thu, 9 May 2013 21:27:56 +0000 (17:27 -0400)
committerCory Fields <theuni-nospam-@xbmc.org>
Thu, 9 May 2013 21:28:21 +0000 (17:28 -0400)
xbmc/cores/VideoRenderers/RenderManager.cpp
xbmc/cores/VideoRenderers/RenderManager.h

index 16a2855..b415c2c 100644 (file)
@@ -274,12 +274,12 @@ bool CXBMCRenderManager::Configure(unsigned int width, unsigned int height, unsi
   return result;
 }
 
-bool CXBMCRenderManager::RendererHandlesPresent()
+bool CXBMCRenderManager::RendererHandlesPresent() const
 {
   return IsConfigured() && m_presentmethod != PRESENT_METHOD_BYPASS;
 }
 
-bool CXBMCRenderManager::IsConfigured()
+bool CXBMCRenderManager::IsConfigured() const
 {
   if (!m_pRenderer)
     return false;
index 486bde9..b67629a 100644 (file)
@@ -66,7 +66,7 @@ public:
 
   // Functions called from mplayer
   bool Configure(unsigned int width, unsigned int height, unsigned int d_width, unsigned int d_height, float fps, unsigned flags, ERenderFormat format, unsigned extended_format,  unsigned int orientation);
-  bool IsConfigured();
+  bool IsConfigured() const;
 
   int AddVideoPicture(DVDVideoPicture& picture);
 
@@ -110,7 +110,7 @@ public:
 
   void UpdateResolution();
 
-  bool RendererHandlesPresent();
+  bool RendererHandlesPresent() const;
 
 #ifdef HAS_GL
   CLinuxRendererGL    *m_pRenderer;