extensions/source/update/check/updatehdl.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 1a75463c7957034012695ceee77ce140506c9841
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue Sep 16 20:42:48 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Sep 17 14:30:50 2025 +0200

    update check: Use RET_YES constant
    
    ... instead of a hard-coded 2 and a comment explaining
    that this is the value of RET_YES.
    
    Change-Id: I7caabe2583cea3e36c75777a925b7b1f96dc7281
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191065
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/extensions/source/update/check/updatehdl.cxx 
b/extensions/source/update/check/updatehdl.cxx
index 56fe37b8e3d0..bc6aeac5b417 100644
--- a/extensions/source/update/check/updatehdl.cxx
+++ b/extensions/source/update/check/updatehdl.cxx
@@ -62,6 +62,7 @@
 #include <strings.hrc>
 #include <unotools/resmgr.hxx>
 #include <tools/urlobj.hxx>
+#include <vcl/vclenum.hxx>
 #include <comphelper/diagnose_ex.hxx>
 
 constexpr OUString COMMAND_CLOSE = u"close"_ustr;
@@ -816,7 +817,7 @@ bool UpdateHandler::showWarning( const OUString 
&rWarningText ) const
         // xMsgBox->setCaptionText( msCancelTitle );
         xMsgBox->setMessageText( rWarningText );
         nRet = xMsgBox->execute();
-        if ( nRet == 2 ) // RET_YES == 2
+        if (nRet == RET_YES)
             bRet = true;
         mbShowsMessageBox = false;
     }
@@ -886,7 +887,7 @@ bool UpdateHandler::showWarning( const OUString 
&rWarningText,
         mbShowsMessageBox = true;
         xMsgBox->setMessageText( rWarningText );
         nRet = xMsgBox->execute();
-        if ( nRet == 2 ) // RET_YES == 2
+        if (nRet == RET_YES)
             bRet = true;
 
         mbShowsMessageBox = false;

Reply via email to