[Libreoffice-commits] core.git: extensions/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 5 10:19:14 UTC 2021


 extensions/source/update/check/updatehdl.cxx |    4 ++--
 extensions/source/update/check/updatehdl.hxx |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit c376b2428718a48ce4283fe002c0d493bfe1232e
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Aug 5 10:20:28 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Aug 5 12:18:18 2021 +0200

    fix --enable-online-update after
    
        commit 14cfff500e93f0d6cbf8412065feea85c01ea81d
        Pass context and resource string down to boost::locale separately
    
    Change-Id: I10336d0081c03090d63f48636ee8283b327304aa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120058
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx
index 2f54e60dfd32..9374aec98a0b 100644
--- a/extensions/source/update/check/updatehdl.cxx
+++ b/extensions/source/update/check/updatehdl.cxx
@@ -585,7 +585,7 @@ void UpdateHandler::updateState( UpdateState eState )
 }
 
 OUString UpdateHandler::loadString(const std::locale& rLocale,
-                                   const char* pResourceId)
+                                   TranslateId pResourceId)
 {
     return Translate::get(pResourceId, rLocale);
 }
@@ -642,7 +642,7 @@ void UpdateHandler::loadStrings()
     msResumeBtn     = loadString( loc, RID_UPDATE_BTN_RESUME );
     msCancelBtn     = loadString( loc, RID_UPDATE_BTN_CANCEL );
 
-    std::pair<const char*, const char*> RID_UPDATE_BUBBLE[] =
+    std::pair<TranslateId, TranslateId> RID_UPDATE_BUBBLE[] =
     {
         { RID_UPDATE_BUBBLE_UPDATE_AVAIL, RID_UPDATE_BUBBLE_T_UPDATE_AVAIL },
         { RID_UPDATE_BUBBLE_UPDATE_NO_DOWN, RID_UPDATE_BUBBLE_T_UPDATE_NO_DOWN },
diff --git a/extensions/source/update/check/updatehdl.hxx b/extensions/source/update/check/updatehdl.hxx
index 12ed917a76b4..6597176468bd 100644
--- a/extensions/source/update/check/updatehdl.hxx
+++ b/extensions/source/update/check/updatehdl.hxx
@@ -36,6 +36,7 @@
 #include <com/sun/star/frame/XTerminateListener.hpp>
 #include <com/sun/star/task/XInteractionHandler.hpp>
 #include <cppuhelper/implbase.hxx>
+#include <unotools/resmgr.hxx>
 #include <rtl/ref.hxx>
 
 #include "actionlistener.hxx"
@@ -142,7 +143,7 @@ private:
     void                    setDownloadBtnLabel( bool bAppendDots );
     void                    loadStrings();
     static OUString         loadString(const std::locale& rLocale,
-                                       const char* pResourceId);
+                                       TranslateId pResourceId);
     OUString                substVariables( const OUString &rSource ) const;
     static void             insertControlModel( css::uno::Reference< css::awt::XControlModel > const & rxDialogModel,
                                                 OUString const & rServiceName,


More information about the Libreoffice-commits mailing list