diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-03 10:42:17 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-03 10:42:17 -0600 |
commit | eca5888eaaf3aa254b0e888ba328656e1d699a4d (patch) | |
tree | f8ba6bd040ef322029ab7d458583468a87fcc155 /sfx2 | |
parent | 6a60f07de36ac4448b99185143553028fc26ce59 (diff) |
WaE : missing return value on one code path
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 96cb966896c7..141b389504d3 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -856,7 +856,7 @@ static bool lcl_isSystemFilePicker( const uno::Reference< XFilePicker >& _rxFP ) return false; } -enum open_or_save_t {OPEN, SAVE}; +enum open_or_save_t {OPEN, SAVE, UNDEFINED}; static open_or_save_t lcl_OpenOrSave(sal_Int16 const nDialogType) { switch (nDialogType) @@ -877,6 +877,7 @@ static open_or_save_t lcl_OpenOrSave(sal_Int16 const nDialogType) default: assert(false); // invalid dialog type } + return UNDEFINED; } // ------------------------------------------------------------------------ |