Kaydet (Commit) d8bbe0ed authored tarafından Stephan Bergmann's avatar Stephan Bergmann

EndDialog takes long nResult, not bool

Change-Id: Ic6283b7a71a5d1c539ae99155f448e34e877080a
üst 4ebeb52a
...@@ -518,7 +518,7 @@ SvxThesaurusDialog::SvxThesaurusDialog( ...@@ -518,7 +518,7 @@ SvxThesaurusDialog::SvxThesaurusDialog(
IMPL_LINK( SvxThesaurusDialog, ReplaceBtnHdl_Impl, Button *, EMPTYARG /*pBtn*/ ) IMPL_LINK( SvxThesaurusDialog, ReplaceBtnHdl_Impl, Button *, EMPTYARG /*pBtn*/ )
{ {
EndDialog(true); EndDialog(RET_OK);
return 0; return 0;
} }
......
...@@ -135,7 +135,7 @@ IMPL_LINK_NOARG(CertPathDialog, OKHdl_Impl) ...@@ -135,7 +135,7 @@ IMPL_LINK_NOARG(CertPathDialog, OKHdl_Impl)
SAL_WARN("cui.options", "CertPathDialog::OKHdl_Impl(): caught exception" << e.Message); SAL_WARN("cui.options", "CertPathDialog::OKHdl_Impl(): caught exception" << e.Message);
} }
EndDialog(true); EndDialog(RET_OK);
return 0; return 0;
} }
......
...@@ -225,13 +225,13 @@ LicenseDialogImpl::LicenseDialogImpl( ...@@ -225,13 +225,13 @@ LicenseDialogImpl::LicenseDialogImpl(
IMPL_LINK_NOARG(LicenseDialogImpl, AcceptHdl) IMPL_LINK_NOARG(LicenseDialogImpl, AcceptHdl)
{ {
EndDialog(true); EndDialog(RET_OK);
return 0; return 0;
} }
IMPL_LINK_NOARG(LicenseDialogImpl, CancelHdl) IMPL_LINK_NOARG(LicenseDialogImpl, CancelHdl)
{ {
EndDialog(false); EndDialog(RET_CANCEL);
return 0; return 0;
} }
......
...@@ -33,7 +33,7 @@ OUString InputDialog::getEntryText() const ...@@ -33,7 +33,7 @@ OUString InputDialog::getEntryText() const
IMPL_LINK(InputDialog,ClickHdl,PushButton*, pButton) IMPL_LINK(InputDialog,ClickHdl,PushButton*, pButton)
{ {
EndDialog(pButton == m_pOK ? true : false); EndDialog(pButton == m_pOK ? RET_OK : RET_CANCEL);
return 0; return 0;
} }
......
...@@ -247,7 +247,7 @@ void FontWorkGalleryDialog::insertSelectedFontwork() ...@@ -247,7 +247,7 @@ void FontWorkGalleryDialog::insertSelectedFontwork()
IMPL_LINK_NOARG(FontWorkGalleryDialog, ClickOKHdl) IMPL_LINK_NOARG(FontWorkGalleryDialog, ClickOKHdl)
{ {
insertSelectedFontwork(); insertSelectedFontwork();
EndDialog( true ); EndDialog( RET_OK );
return 0; return 0;
} }
...@@ -256,7 +256,7 @@ IMPL_LINK_NOARG(FontWorkGalleryDialog, ClickOKHdl) ...@@ -256,7 +256,7 @@ IMPL_LINK_NOARG(FontWorkGalleryDialog, ClickOKHdl)
IMPL_LINK_NOARG(FontWorkGalleryDialog, DoubleClickFavoriteHdl) IMPL_LINK_NOARG(FontWorkGalleryDialog, DoubleClickFavoriteHdl)
{ {
insertSelectedFontwork(); insertSelectedFontwork();
EndDialog( true ); EndDialog( RET_OK );
return( 0L ); return( 0L );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment