diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-23 19:38:07 +0000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-03-24 05:44:56 +0000 |
commit | 53c39db4cfbeec29c0972df8ade4b12a23074f10 (patch) | |
tree | fb2047a89cdbb3cec031cf8baf3475ea1b739e4d | |
parent | 6e70d50db34afc9242b45172f456bb8221c4fa00 (diff) |
These must be const
Change-Id: I6af7a8933662dc5b8585c14d1cb66e2aad883252
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149444
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | include/com/sun/star/uno/Reference.h | 4 | ||||
-rw-r--r-- | include/com/sun/star/uno/Reference.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/com/sun/star/uno/Reference.h b/include/com/sun/star/uno/Reference.h index 1a6e6a10cee5..417d28b0418b 100644 --- a/include/com/sun/star/uno/Reference.h +++ b/include/com/sun/star/uno/Reference.h @@ -566,14 +566,14 @@ public: @return new reference */ - template< class other_type > inline Reference< other_type > query(); + template< class other_type > inline Reference< other_type > query() const; /** Queries this for the required interface, and returns the requested reference, or throws on failure. A syntactic sugar for 'Reference< other_type > xOther(xThis, UNO_QUERY_THROW)' that avoids some verbocity. @return new reference */ - template< class other_type > inline Reference< other_type > queryThrow(); + template< class other_type > inline Reference< other_type > queryThrow() const; #endif }; diff --git a/include/com/sun/star/uno/Reference.hxx b/include/com/sun/star/uno/Reference.hxx index 12511d7d280f..40297cc086d7 100644 --- a/include/com/sun/star/uno/Reference.hxx +++ b/include/com/sun/star/uno/Reference.hxx @@ -387,13 +387,13 @@ inline Reference< interface_type > Reference< interface_type >::query( #if defined LIBO_INTERNAL_ONLY template< class interface_type > template< class other_type > -inline Reference< other_type > Reference< interface_type >::query() +inline Reference< other_type > Reference< interface_type >::query() const { return Reference< other_type >(*this, UNO_QUERY); } template< class interface_type > template< class other_type > -inline Reference< other_type > Reference< interface_type >::queryThrow() +inline Reference< other_type > Reference< interface_type >::queryThrow() const { return Reference< other_type >(*this, UNO_QUERY_THROW); } |