From c17eaa63273a7544ea812990d7e0e5644385a220 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 24 Mar 2013 22:30:48 +0100 Subject: Does not compile Change-Id: If7d24a6378a6645baf9d0c40e3c3cf0ae7d4f317 --- ucb/source/ucp/gio/gio_content.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ucb/source/ucp/gio') diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 68e693c8b8aa..4b7c3042646a 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -645,12 +645,12 @@ uno::Sequence< uno::Any > Content::setPropertyValues( #if OSL_DEBUG_LEVEL > 1 g_warning("Set prop '%s'", rtl::OUStringToOString(rValue.Name, RTL_TEXTENCODING_UTF8).getStr()); #endif - if ( rValue.Name == "ContentType" ) || - rValue.Name == "MediaType" ) || - rValue.Name == "IsDocument" ) || - rValue.Name == "IsFolder" ) || - rValue.Name == "Size" ) || - rValue.Name == "CreatableContentsInfo" ) ) + if ( rValue.Name == "ContentType" || + rValue.Name == "MediaType" || + rValue.Name == "IsDocument" || + rValue.Name == "IsFolder" || + rValue.Name == "Size" || + rValue.Name == "CreatableContentsInfo" ) { aRet[ n ] <<= getReadOnlyException( static_cast< cppu::OWeakObject * >(this) ); } @@ -931,7 +931,7 @@ uno::Any SAL_CALL Content::execute( ucbhelper::cancelCommandExecution ( getBadArgExcept (), xEnv ); aRet <<= setPropertyValues( aProperties, xEnv ); } - else if (aCommand.Name.equals == "createNewContent" ) + else if (aCommand.Name == "createNewContent" && isFolder( xEnv ) ) { ucb::ContentInfo arg; -- cgit