diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-03 12:19:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-03 20:04:06 +0200 |
commit | 605a34ccca64c86c89e4e8b6e4b049175a994d54 (patch) | |
tree | cd3ed8c6e57815df570191cc4f24be2a937fadc9 /ucb/source/ucp/ftp | |
parent | c46d27cfe4dce83f68b3f222c9c1d26ad33d0b49 (diff) |
Just use Any ctor instead of makeAny in ucb
Change-Id: I5e6964b5fa02d27d37ee772c761c72ed5b50492c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133755
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb/source/ucp/ftp')
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontent.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpresultsetI.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index 3b035681da95..8e02302ebc4e 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -515,7 +515,7 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand, ContentInfo aArg; if (!(aCommand.Argument >>= aArg)) { ucbhelper::cancelCommandExecution( - makeAny( + Any( IllegalArgumentException( "Wrong argument type!", static_cast< cppu::OWeakObject * >(this), @@ -730,7 +730,7 @@ Reference< XRow > FTPContent::getPropertyValues( xRow->appendString(rProp,aDirEntry.m_aName); else if(Name == "CreatableContentsInfo") xRow->appendObject(rProp, - makeAny(queryCreatableContentsInfo())); + Any(queryCreatableContentsInfo())); else if(aDirEntry.m_nMode != INETCOREFTP_FILEMODE_UNKNOWN) { if(Name == "ContentType") xRow->appendString(rProp, diff --git a/ucb/source/ucp/ftp/ftpresultsetI.cxx b/ucb/source/ucp/ftp/ftpresultsetI.cxx index d886a0dbf973..baef97284579 100644 --- a/ucb/source/ucp/ftp/ftpresultsetI.cxx +++ b/ucb/source/ucp/ftp/ftpresultsetI.cxx @@ -79,7 +79,7 @@ ResultSetI::ResultSetI(const Reference<XComponentContext>& rxContext, else if(Name == "CreatableContentsInfo") xRow->appendObject( rProp, - makeAny(FTPContent::queryCreatableContentsInfo_Static())); + Any(FTPContent::queryCreatableContentsInfo_Static())); else xRow->appendVoid(rProp); } |