Kaydet (Commit) f5edd93a authored tarafından Noel Grandin's avatar Noel Grandin

OString has a std::hash specialisation

Change-Id: Ic406cfe794c45db921b1074e5913db3d2c6e6e89
Reviewed-on: https://gerrit.libreoffice.org/70363
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 3feb6509
...@@ -172,15 +172,7 @@ protected: ...@@ -172,15 +172,7 @@ protected:
OpenGLCapabilitySwitch maOpenGLCapabilitySwitch; OpenGLCapabilitySwitch maOpenGLCapabilitySwitch;
private: private:
struct ProgramHash typedef std::unordered_map< OString, std::shared_ptr<OpenGLProgram> > ProgramCollection;
{
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;
ProgramCollection maPrograms; ProgramCollection maPrograms;
OpenGLProgram* mpCurrentProgram; OpenGLProgram* mpCurrentProgram;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment