[Libreoffice-commits] .: sfx2/source

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sat Dec 3 08:42:25 PST 2011


 sfx2/source/dialog/filedlghelper.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit eca5888eaaf3aa254b0e888ba328656e1d699a4d
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Dec 3 10:42:17 2011 -0600

    WaE : missing return value on one code path

diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index 96cb966..141b389 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;
 }
 
 // ------------------------------------------------------------------------


More information about the Libreoffice-commits mailing list