From b227443390104fac49acd3c3f9c6eeba73cf47c1 Mon Sep 17 00:00:00 2001 From: manuelk Date: Thu, 15 Aug 2013 10:32:08 -0700 Subject: [PATCH] Fix compiler warnings in osd/ptexTextureLoader caused by incorrect const declarations --- opensubdiv/osd/ptexTextureLoader.cpp | 4 ++-- opensubdiv/osd/ptexTextureLoader.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/opensubdiv/osd/ptexTextureLoader.cpp b/opensubdiv/osd/ptexTextureLoader.cpp index 3c298f8c..cda75363 100644 --- a/opensubdiv/osd/ptexTextureLoader.cpp +++ b/opensubdiv/osd/ptexTextureLoader.cpp @@ -246,12 +246,12 @@ OsdPtexTextureLoader::~OsdPtexTextureLoader() ClearPages(); } -const unsigned long int +unsigned long int OsdPtexTextureLoader::GetNumBlocks( ) const { return (unsigned long int)_blocks.size(); } -const unsigned long int +unsigned long int OsdPtexTextureLoader::GetNumPages( ) const { return (unsigned long int)_pages.size(); } diff --git a/opensubdiv/osd/ptexTextureLoader.h b/opensubdiv/osd/ptexTextureLoader.h index 8fa9dac2..1e9dd3bc 100644 --- a/opensubdiv/osd/ptexTextureLoader.h +++ b/opensubdiv/osd/ptexTextureLoader.h @@ -91,15 +91,15 @@ public: ~OsdPtexTextureLoader(); - const unsigned short GetPageSize( ) const { + unsigned short GetPageSize( ) const { return _pagesize; } - const unsigned long int GetNumBlocks( ) const; + unsigned long int GetNumBlocks( ) const; - const unsigned long int GetNumPages( ) const; + unsigned long int GetNumPages( ) const; - const unsigned int * GetIndexBuffer( ) const { + unsigned int * GetIndexBuffer( ) const { return _indexBuffer; }