Replace remaining getCppuType et al with cppu::UnoType

Change-Id: I08f4e8270061b90b77a976d4ead7462a02fce845
This commit is contained in:
Stephan Bergmann
2015-04-01 08:43:29 +02:00
parent 915dc38b7c
commit 2b1d22e1ff
2 changed files with 14 additions and 14 deletions

View File

@@ -79,7 +79,7 @@ namespace treeview {
getElementType( ) getElementType( )
throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE
{ {
return getCppuVoidType(); return cppu::UnoType<cppu::UnoVoidType>::get();
} }
virtual sal_Bool SAL_CALL hasElements() virtual sal_Bool SAL_CALL hasElements()

View File

@@ -56,28 +56,28 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property( beans::Property(
"IsReadOnly", "IsReadOnly",
-1, -1,
getCppuBooleanType(), cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"IsErrorDocument", "IsErrorDocument",
-1, -1,
getCppuBooleanType(), cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"IsDocument", "IsDocument",
-1, -1,
getCppuBooleanType(), cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"IsFolder", "IsFolder",
-1, -1,
getCppuBooleanType(), cppu::UnoType<bool>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
@@ -108,35 +108,35 @@ uno::Sequence< beans::Property > Content::getProperties(
beans::Property( beans::Property(
"KeywordList", "KeywordList",
-1, -1,
getCppuType( static_cast< const uno::Sequence< OUString >* >( 0 ) ), cppu::UnoType<uno::Sequence< OUString >>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"KeywordRef", "KeywordRef",
-1, -1,
getCppuType( static_cast< const uno::Sequence< uno::Sequence< OUString > >* >( 0 ) ), cppu::UnoType<uno::Sequence< uno::Sequence< OUString > >>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"KeywordTitleForRef", "KeywordTitleForRef",
-1, -1,
getCppuType( static_cast< const uno::Sequence< uno::Sequence< OUString > >* >( 0 ) ), cppu::UnoType<uno::Sequence< uno::Sequence< OUString > >>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"KeywordAnchorForRef", "KeywordAnchorForRef",
-1, -1,
getCppuType( static_cast< const uno::Sequence< uno::Sequence< OUString > >* >( 0 ) ), cppu::UnoType<uno::Sequence< uno::Sequence< OUString > >>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
props[idx++] = props[idx++] =
beans::Property( beans::Property(
"SearchScopes", "SearchScopes",
-1, -1,
getCppuType( static_cast< const uno::Sequence< OUString >* >( 0 ) ), cppu::UnoType<uno::Sequence< OUString >>::get(),
beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ); beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY );
} }
@@ -167,22 +167,22 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
ucb::CommandInfo( ucb::CommandInfo(
"getCommandInfo", "getCommandInfo",
-1, -1,
getCppuVoidType() cppu::UnoType<cppu::UnoVoidType>::get()
), ),
ucb::CommandInfo( ucb::CommandInfo(
"getPropertySetInfo", "getPropertySetInfo",
-1, -1,
getCppuVoidType() cppu::UnoType<cppu::UnoVoidType>::get()
), ),
ucb::CommandInfo( ucb::CommandInfo(
"getPropertyValues", "getPropertyValues",
-1, -1,
getCppuType( static_cast< uno::Sequence< beans::Property > * >( 0 ) ) cppu::UnoType<uno::Sequence< beans::Property >>::get()
), ),
ucb::CommandInfo( ucb::CommandInfo(
"setPropertyValues", "setPropertyValues",
-1, -1,
getCppuType( static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) ) cppu::UnoType<uno::Sequence< beans::PropertyValue >>::get()
), ),
ucb::CommandInfo( ucb::CommandInfo(
"open", "open",