diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-14 13:34:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-14 15:42:31 +0200 |
commit | a6aa57ff591fdf3d834a7e0b1e9e2ebad1d87c5c (patch) | |
tree | 3de1d4767963fd78bcf6f8a90a4e2467e3a2acc5 /extensions/source | |
parent | use more SAL_N_ELEMENTS part 2 (diff) | |
download | core-a6aa57ff591fdf3d834a7e0b1e9e2ebad1d87c5c.tar.gz core-a6aa57ff591fdf3d834a7e0b1e9e2ebad1d87c5c.zip |
use ERRCODE_NONE instead of 0
peeling off a small chunk of my ErrCode strong_int conversion
Change-Id: Idc89e8496083beed7608cba705cd981139eb7111
Reviewed-on: https://gerrit.libreoffice.org/38777
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/dbpilots/commonpagesdbp.cxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/dbpilots/commonpagesdbp.cxx b/extensions/source/dbpilots/commonpagesdbp.cxx index dd6cdb007dda..af958da2dc3d 100644 --- a/extensions/source/dbpilots/commonpagesdbp.cxx +++ b/extensions/source/dbpilots/commonpagesdbp.cxx @@ -215,7 +215,7 @@ namespace dbp aFileDlg.AddFilter(pFilter->GetUIName(),pFilter->GetDefaultExtension()); } - if (0 == aFileDlg.Execute()) + if (ERRCODE_NONE == aFileDlg.Execute()) { OUString sDataSourceName = aFileDlg.GetPath(); ::svt::OFileNotation aFileNotation(sDataSourceName); diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index c9dd53ef38a8..4537548b8a36 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -2772,7 +2772,7 @@ namespace pcr } _rClearBeforeDialog.clear(); - bool bSuccess = ( 0 == aFileDlg.Execute() ); + bool bSuccess = ( ERRCODE_NONE == aFileDlg.Execute() ); if ( bSuccess ) { if ( bHandleNonLink && xController.is() ) @@ -2812,7 +2812,7 @@ namespace pcr aFileDlg.SetDisplayDirectory( sURL ); _rClearBeforeDialog.clear(); - bool bSuccess = ( 0 == aFileDlg.Execute() ); + bool bSuccess = ( ERRCODE_NONE == aFileDlg.Execute() ); if ( bSuccess ) _out_rNewValue <<= aFileDlg.GetPath(); return bSuccess; @@ -2875,7 +2875,7 @@ namespace pcr } _rClearBeforeDialog.clear(); - bool bSuccess = ( 0 == aFileDlg.Execute() ); + bool bSuccess = ( ERRCODE_NONE == aFileDlg.Execute() ); if ( bSuccess ) _out_rNewValue <<= aFileDlg.GetPath(); return bSuccess; |