summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbacomment.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-03 23:26:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-04 08:09:59 +0200
commit6cd4194e05233e8d1ddb59ffb9703778668b3f1b (patch)
tree7426ebc757cc92988d561b07580854b55160c3b5 /sc/source/ui/vba/vbacomment.cxx
parent5fc8f8620d0367813d20b9a90ece47f0674996b3 (diff)
Just use Any ctor instead of makeAny in sc
Change-Id: I5c2363ff03ae02274f3c334cc262977c834950d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133788 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source/ui/vba/vbacomment.cxx')
-rw-r--r--sc/source/ui/vba/vbacomment.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx
index 1552fadb240e..a9b1cf7c47f2 100644
--- a/sc/source/ui/vba/vbacomment.cxx
+++ b/sc/source/ui/vba/vbacomment.cxx
@@ -106,7 +106,7 @@ ScVbaComment::getCommentByIndex( sal_Int32 Index )
// parent is sheet ( parent of the range which is the parent of the comment )
uno::Reference< XCollection > xColl( new ScVbaComments( getParent()->getParent(), mxContext, mxModel, xIndexAccess ) );
- return uno::Reference< excel::XComment > ( xColl->Item( uno::makeAny( Index ), uno::Any() ), uno::UNO_QUERY_THROW );
+ return uno::Reference< excel::XComment > ( xColl->Item( uno::Any( Index ), uno::Any() ), uno::UNO_QUERY_THROW );
}
// public vba functions