[Libreoffice-commits] core.git: include/vcl
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Sun Apr 7 12:00:46 UTC 2019
include/vcl/opengl/OpenGLContext.hxx | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
New commits:
commit f5edd93aec96102a0722bb435e206c9d7583ab12
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun Apr 7 09:16:32 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Apr 7 14:00:25 2019 +0200
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list