svtools/source/dialogs/colrdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 50aaf26eb45e6acee5c2dc3cc19a13299b8945e9 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri May 30 08:33:49 2025 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri May 30 12:17:00 2025 +0200 svtools: Use RET_CANCEL instead of magic number 0 Change-Id: I4669b19c0bc441e6f7beaa8e4272fd5653e9260e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186030 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx index aeb4771ec386..d4f392cd3937 100644 --- a/svtools/source/dialogs/colrdlg.cxx +++ b/svtools/source/dialogs/colrdlg.cxx @@ -136,7 +136,7 @@ void SvColorDialog::ExecuteAsync(weld::Window* pParent, const std::function<void IMPL_LINK( SvColorDialog, DialogClosedHdl, css::ui::dialogs::DialogClosedEvent*, pEvent, void ) { - sal_Int32 nResult = 0; + sal_Int32 nResult = RET_CANCEL; sal_Int16 nDialogRet = pEvent->DialogResult; if( nDialogRet == ExecutableDialogResults::OK ) {