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

file_error_transl.h -> file_error_transl.hxx

Change-Id: Ia71097a3d0fbeb606b1f6cfb7e6edb86bd45082a
üst e46712f4
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "system.h" #include "system.h"
#include "createfilehandlefromfd.hxx" #include "createfilehandlefromfd.hxx"
#include "file_error_transl.h" #include "file_error_transl.hxx"
#include "file_impl.hxx" #include "file_impl.hxx"
#include "file_url.h" #include "file_url.h"
#include "uunxapi.h" #include "uunxapi.h"
......
...@@ -18,16 +18,16 @@ ...@@ -18,16 +18,16 @@
*/ */
#include <errno.h> #include <errno.h>
#include "file_error_transl.h" #include "file_error_transl.hxx"
#include <osl/diagnose.h> #include <osl/diagnose.h>
oslFileError oslTranslateFileError(sal_Bool bIsError, int Errno) oslFileError oslTranslateFileError(bool bIsError, int Errno)
{ {
oslFileError osl_error = osl_File_E_invalidError; oslFileError osl_error = osl_File_E_invalidError;
OSL_ENSURE((bIsError && (0 != Errno)) || (!bIsError && (0 == Errno)), "oslTranslateFileError strange input combination!"); OSL_ENSURE((bIsError && (0 != Errno)) || (!bIsError && (0 == Errno)), "oslTranslateFileError strange input combination!");
/* Have a look at file_error_transl.h for /* Have a look at file_error_transl.hxx for
the reason that we do this here */ the reason that we do this here */
if (bIsError && (0 == Errno)) if (bIsError && (0 == Errno))
return osl_error; return osl_error;
......
...@@ -17,17 +17,12 @@ ...@@ -17,17 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#ifndef INCLUDED_SAL_OSL_UNX_FILE_ERROR_TRANSL_H #ifndef INCLUDED_SAL_OSL_UNX_FILE_ERROR_TRANSL_HXX
#define INCLUDED_SAL_OSL_UNX_FILE_ERROR_TRANSL_H #define INCLUDED_SAL_OSL_UNX_FILE_ERROR_TRANSL_HXX
#include <osl/file.h> #include <osl/file.h>
#include <sal/types.h> #include <sal/types.h>
#ifdef __cplusplus
extern "C"
{
#endif
/********************************************* /*********************************************
oslTranslateFileError oslTranslateFileError
Translate errno's to osl file errors Translate errno's to osl file errors
...@@ -49,14 +44,10 @@ extern "C" ...@@ -49,14 +44,10 @@ extern "C"
*********************************************/ *********************************************/
#define OSL_FET_SUCCESS sal_False #define OSL_FET_SUCCESS false
#define OSL_FET_ERROR sal_True #define OSL_FET_ERROR true
oslFileError oslTranslateFileError(sal_Bool bIsError, int Errno); oslFileError oslTranslateFileError(bool bIsError, int Errno);
#ifdef __cplusplus
}
#endif
#endif #endif
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "system.h" #include "system.h"
#include "file_impl.hxx" #include "file_impl.hxx"
#include "file_error_transl.h" #include "file_error_transl.hxx"
#include "file_path_helper.hxx" #include "file_path_helper.hxx"
#include "file_url.h" #include "file_url.h"
#include "uunxapi.hxx" #include "uunxapi.hxx"
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include "file_impl.hxx" #include "file_impl.hxx"
#include "file_error_transl.h" #include "file_error_transl.hxx"
#include "file_path_helper.hxx" #include "file_path_helper.hxx"
#include "file_url.h" #include "file_url.h"
#include "uunxapi.hxx" #include "uunxapi.hxx"
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include <rtl/ustrbuf.h> #include <rtl/ustrbuf.h>
#include "rtl/textcvt.h" #include "rtl/textcvt.h"
#include "file_error_transl.h" #include "file_error_transl.hxx"
#include "file_path_helper.hxx" #include "file_path_helper.hxx"
#include "uunxapi.hxx" #include "uunxapi.hxx"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "osl/thread.h" #include "osl/thread.h"
#include "rtl/alloc.h" #include "rtl/alloc.h"
#include "file_error_transl.h" #include "file_error_transl.hxx"
#include "file_url.h" #include "file_url.h"
#include "system.h" #include "system.h"
......
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