diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-11 10:17:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-11 11:10:39 +0100 |
commit | f3aebf9a3b55cfe558a2ee59f38f0c121f7b65fd (patch) | |
tree | d497aff2cbbb39168217fef3683b2ecc84a971c3 /svtools | |
parent | 553e4558353e5a0e1e9a549c08ba2add687c3bf5 (diff) |
why make a copy just to use some const methods, optimize
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfcache.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index e0aa6595f6ac..82ef6e37a0d9 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -116,11 +116,11 @@ GraphicID::GraphicID( const GraphicObject& rObj ) case( GRAPHIC_GDIMETAFILE ): { - const GDIMetaFile aMtf( rGraphic.GetGDIMetaFile() ); + const GDIMetaFile& rMtf = rGraphic.GetGDIMetaFile(); - mnID1 |= ( aMtf.GetActionSize() & 0x0fffffff ); - mnID2 = aMtf.GetPrefSize().Width(); - mnID3 = aMtf.GetPrefSize().Height(); + mnID1 |= ( rMtf.GetActionSize() & 0x0fffffff ); + mnID2 = rMtf.GetPrefSize().Width(); + mnID3 = rMtf.GetPrefSize().Height(); mnID4 = rGraphic.GetChecksum(); } break; |