Kaydet (Commit) 2dc82157 authored tarafından Caolán McNamara's avatar Caolán McNamara

HasImageAtPos takes an id not a pos

so rename it

Change-Id: Id83a11d31d1d51f414e6a98ebb71a227c7fe448f
üst 40578897
......@@ -101,7 +101,7 @@ public:
Image GetImage( const OUString& rImageName ) const;
sal_uInt16 GetImagePos( sal_uInt16 nId ) const;
bool HasImageAtPos( sal_uInt16 nId ) const;
bool HasImageForId( sal_uInt16 nId ) const;
sal_uInt16 GetImagePos( const OUString& rImageName ) const;
sal_uInt16 GetImageId( sal_uInt16 nPos ) const;
......
......@@ -517,7 +517,7 @@ static Image GetImageFromList_Impl( sal_uInt16 nImageId, bool bBig )
pList = xSmallImageList.get();
}
if ( pList->HasImageAtPos( nImageId ) )
if ( pList->HasImageForId( nImageId ) )
return pList->GetImage( nImageId );
return Image();
}
......
......@@ -287,7 +287,7 @@ sal_uInt16 ImageList::GetImagePos( sal_uInt16 nId ) const
return IMAGELIST_IMAGE_NOTFOUND;
}
bool ImageList::HasImageAtPos( sal_uInt16 nId ) const
bool ImageList::HasImageForId( sal_uInt16 nId ) const
{
return GetImagePos( nId ) != IMAGELIST_IMAGE_NOTFOUND;
}
......
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