diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 11:25:08 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 11:25:08 +0000 |
commit | ef7f2783055a4b3e873a1b0ecdc29fddb246907b (patch) | |
tree | 343c403552b2c3c54aa128429b315e7e6ff6e4b2 /svx/source/dialog/pfiledlg.cxx | |
parent | INTEGRATION: CWS sb59 (1.5.62); FILE MERGED (diff) | |
download | core-ef7f2783055a4b3e873a1b0ecdc29fddb246907b.tar.gz core-ef7f2783055a4b3e873a1b0ecdc29fddb246907b.zip |
INTEGRATION: CWS sb59 (1.9.62); FILE MERGED
2006/08/18 12:02:49 sb 1.9.62.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'svx/source/dialog/pfiledlg.cxx')
-rw-r--r-- | svx/source/dialog/pfiledlg.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/dialog/pfiledlg.cxx b/svx/source/dialog/pfiledlg.cxx index 4123171aeb3f..973c088bb963 100644 --- a/svx/source/dialog/pfiledlg.cxx +++ b/svx/source/dialog/pfiledlg.cxx @@ -4,9 +4,9 @@ * * $RCSfile: pfiledlg.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2006-09-17 04:34:51 $ + * last change: $Author: obo $ $Date: 2006-10-12 12:25:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -234,16 +234,16 @@ SvxPluginFileDlg::~SvxPluginFileDlg() #define PFDLG_FOUND_SOUND 0x0004 #define PFDLG_FOUND_VIDEO 0x0008 -sal_Bool SvxPluginFileDlg::IsAvailable (sal_uInt16 nKind) +bool SvxPluginFileDlg::IsAvailable (sal_uInt16 nKind) { static sal_uInt16 nCheck = 0; if ( nKind == SID_INSERT_SOUND && ( nCheck & PFDLG_CHECKED_SOUND ) ) - return (nCheck & PFDLG_FOUND_SOUND); + return (nCheck & PFDLG_FOUND_SOUND) != 0; if ( nKind == SID_INSERT_VIDEO && ( nCheck & PFDLG_CHECKED_VIDEO ) ) - return (nCheck & PFDLG_FOUND_VIDEO); + return (nCheck & PFDLG_FOUND_VIDEO) != 0; - sal_Bool bFound=sal_False; + bool bFound = false; uno::Reference< lang::XMultiServiceFactory > xMgr( ::comphelper::getProcessServiceFactory() ); if( xMgr.is() ) @@ -266,7 +266,7 @@ sal_Bool SvxPluginFileDlg::IsAvailable (sal_uInt16 nKind) if( aStrPlugMIMEType.SearchAscii( sAudio ) == 0 ) { - bFound=sal_True; + bFound = true; nCheck |= PFDLG_FOUND_SOUND; } } @@ -277,7 +277,7 @@ sal_Bool SvxPluginFileDlg::IsAvailable (sal_uInt16 nKind) if (aStrPlugMIMEType.SearchAscii( sVideo ) == 0) { - bFound=sal_True; + bFound = true; nCheck |= PFDLG_FOUND_VIDEO; } } |