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

coverity#1398229 Logically dead code

Change-Id: I8d192d27497ddb4d736b6b3fe38dfa9463bba43a
üst da0d7cfb
......@@ -485,10 +485,6 @@ static sal_uInt16 GetFolderDescriptionId_Impl( const OUString& rURL )
static Image GetImageFromList_Impl( sal_uInt16 nImageId, bool bBig )
{
if ( !bBig && IMG_FOLDER == nImageId )
// return our new small folder image (256 colors)
return Image( SvtResId( IMG_SVT_FOLDER ) );
switch (nImageId)
{
case IMG_IMPRESS:
......@@ -544,7 +540,8 @@ static Image GetImageFromList_Impl( sal_uInt16 nImageId, bool bBig )
case IMG_TABLE:
return Image(BitmapEx(SvtResId(bBig ? BMP_TABLE_LC : BMP_TABLE_SC)));
case IMG_FOLDER:
return Image(BitmapEx(SvtResId(bBig ? BMP_FOLDER_LC : BMP_FOLDER_SC)));
// if not bBig, then return our new small folder image (256 colors)
return bBig ? Image(BitmapEx(SvtResId(BMP_FOLDER_LC))) : Image(SvtResId(IMG_SVT_FOLDER));
case IMG_DXF:
return Image(BitmapEx(SvtResId(bBig ? BMP_DXF_LC : BMP_DXF_SC)));
case IMG_MET:
......
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