include/com/sun/star/uno/Reference.h   |    4 ++--
 include/com/sun/star/uno/Reference.hxx |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 53c39db4cfbeec29c0972df8ade4b12a23074f10
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Mar 23 19:38:07 2023 +0000
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Mar 24 05:44:56 2023 +0000

    These must be const
    
    Change-Id: I6af7a8933662dc5b8585c14d1cb66e2aad883252
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149444
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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);
 }

Reply via email to