why make a copy just to use some const methods, optimize

This commit is contained in:
Caolán McNamara
2011-08-11 10:17:13 +01:00
parent 553e455835
commit f3aebf9a3b

View File

@@ -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;