From 3c18573ed0278b420e06b1c2ce5fc19232332aba Mon Sep 17 00:00:00 2001 From: prep Date: Tue, 1 May 2012 14:10:52 -0400 Subject: Made restorePermanentObjects() api const correct. --- indra/newview/pipeline.cpp | 6 +++--- indra/newview/pipeline.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index e7123e24d2..7299f73add 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -10140,12 +10140,12 @@ void LLPipeline::hidePermanentObjects( std::vector& restoreList ) } } -void LLPipeline::restorePermanentObjects( std::vector& restoreList ) +void LLPipeline::restorePermanentObjects( const std::vector& restoreList ) { //This method is used to restore(unhide) any vo's from the object list that may have //been hidden because their permanency flag was set. - std::vector::iterator itCurrent = restoreList.begin(); - std::vector::iterator itEnd = restoreList.end(); + std::vector::const_iterator itCurrent = restoreList.begin(); + std::vector::const_iterator itEnd = restoreList.end(); while ( itCurrent != itEnd ) { diff --git a/indra/newview/pipeline.h b/indra/newview/pipeline.h index 5995fc0e5b..a4ab1fa56b 100644 --- a/indra/newview/pipeline.h +++ b/indra/newview/pipeline.h @@ -367,7 +367,7 @@ public: void addDebugBlip(const LLVector3& position, const LLColor4& color); void hidePermanentObjects( std::vector& restoreList ); - void restorePermanentObjects( std::vector& restoreList ); + void restorePermanentObjects( const std::vector& restoreList ); private: void unloadShaders(); -- cgit v1.2.3