summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-04 15:23:49 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-04 17:01:12 +0100
commit45169c93d57acf066748c3ff93b45c919e209db7 (patch)
treec5363f9808b267a62804b7a1cc0c9a4496b0f4f2 /avmedia
parentc85da5656b3a188c0251c22070263b4de56f6a7c (diff)
Convert all Query/Put Value() to bool
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/inc/avmedia/mediaitem.hxx4
-rw-r--r--avmedia/source/framework/mediaitem.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/avmedia/inc/avmedia/mediaitem.hxx b/avmedia/inc/avmedia/mediaitem.hxx
index 5fe0fede94ff..fdd27582a5f4 100644
--- a/avmedia/inc/avmedia/mediaitem.hxx
+++ b/avmedia/inc/avmedia/mediaitem.hxx
@@ -82,8 +82,8 @@ public:
SfxMapUnit ePresUnit,
XubString& rText,
const IntlWrapper *pIntl ) const;
- virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
void merge( const MediaItem& rMediaItem );
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index f9f85eb1ee66..ceaac412bb2d 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -122,7 +122,7 @@ SfxItemPresentation MediaItem::GetPresentation( SfxItemPresentation,
//------------------------------------------------------------------------
-BOOL MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const
+bool MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const
{
uno::Sequence< uno::Any > aSeq( 9 );
@@ -143,10 +143,10 @@ BOOL MediaItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE ) const
//------------------------------------------------------------------------
-BOOL MediaItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE )
+bool MediaItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE )
{
uno::Sequence< uno::Any > aSeq;
- BOOL bRet = false;
+ bool bRet = false;
if( ( rVal >>= aSeq ) && ( aSeq.getLength() == 9 ) )
{