include/vcl/opengl/OpenGLContext.hxx |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

New commits:
commit f5edd93aec96102a0722bb435e206c9d7583ab12
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Sun Apr 7 09:16:32 2019 +0200
Commit:     Noel Grandin <noel.gran...@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.gran...@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;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to