summaryrefslogtreecommitdiff
path: root/include/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-07 09:16:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-07 14:00:25 +0200
commitf5edd93aec96102a0722bb435e206c9d7583ab12 (patch)
treeb0ed242b960ddc26a91ff1d98ded6f27de397895 /include/vcl/opengl
parent3feb65096a5dbb2b9713293a997754f0257223b5 (diff)
OString has a std::hash specialisation
Change-Id: Ic406cfe794c45db921b1074e5913db3d2c6e6e89 Reviewed-on: https://gerrit.libreoffice.org/70363 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index b17ada7e343e..3dc5b4e2bff9 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -172,15 +172,7 @@ protected:
OpenGLCapabilitySwitch maOpenGLCapabilitySwitch;
private:
- struct ProgramHash
- {
- size_t operator()( const OString& aDigest ) const
- {
- return static_cast<size_t>( rtl_crc32( 0, aDigest.getStr(), aDigest.getLength() ) );
- }
- };
-
- typedef std::unordered_map< OString, std::shared_ptr<OpenGLProgram>, ProgramHash > ProgramCollection;
+ typedef std::unordered_map< OString, std::shared_ptr<OpenGLProgram> > ProgramCollection;
ProgramCollection maPrograms;
OpenGLProgram* mpCurrentProgram;