summaryrefslogtreecommitdiffstats
path: root/ucb/source/ucp/file/bc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/file/bc.cxx')
-rw-r--r--ucb/source/ucp/file/bc.cxx20
1 files changed, 2 insertions, 18 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 06ea3a994bb5..9723918069e7 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -34,6 +34,7 @@
#include <com/sun/star/beans/PropertySetInfoChange.hpp>
#include <com/sun/star/ucb/ContentAction.hpp>
#include <com/sun/star/ucb/NameClash.hpp>
+#include <cppuhelper/supportsservice.hxx>
#include "filglob.hxx"
#include "filid.hxx"
#include "filrow.hxx"
@@ -251,12 +252,7 @@ BaseContent::dispose()
delete pPropertySetInfoChangeListeners;
}
-
-
-
// XServiceInfo
-
-
OUString SAL_CALL
BaseContent::getImplementationName()
throw( RuntimeException, std::exception)
@@ -264,20 +260,13 @@ BaseContent::getImplementationName()
return OUString("com.sun.star.comp.ucb.FileContent");
}
-
-
sal_Bool SAL_CALL
BaseContent::supportsService( const OUString& ServiceName )
throw( RuntimeException, std::exception)
{
- if ( ServiceName == "com.sun.star.ucb.FileContent" )
- return true;
- else
- return false;
+ return cppu::supportsService( this, ServiceName );
}
-
-
Sequence< OUString > SAL_CALL
BaseContent::getSupportedServiceNames()
throw( RuntimeException, std::exception )
@@ -287,12 +276,7 @@ BaseContent::getSupportedServiceNames()
return ret;
}
-
-
-
// XTypeProvider
-
-
XTYPEPROVIDER_IMPL_10( BaseContent,
lang::XComponent,
lang::XTypeProvider,