[Libreoffice-commits] core.git: sal/Library_sal.mk sal/osl

Stephan Bergmann sbergman at redhat.com
Tue Mar 4 03:18:30 PST 2014


 sal/Library_sal.mk      |    2 
 sal/osl/unx/profile.c   | 2212 ------------------------------------------------
 sal/osl/unx/profile.cxx | 2212 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 2213 insertions(+), 2213 deletions(-)

New commits:
commit b15b51b76997c5b4cce5fa3d70df99acc1a5439a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Mar 4 12:17:41 2014 +0100

    sal/osl/unx: profile.c -> profile.cxx (to facilitate further fixes)
    
    Change-Id: I3de66f499d20e7765b530890f746ccfe322252ac

diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 6b16426..bda3dd346 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -165,6 +165,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
 	sal/osl/unx/module \
 	sal/osl/unx/process \
 	sal/osl/unx/process_impl \
+	sal/osl/unx/profile \
         $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
 ))
 $(eval $(call gb_Library_add_cobjects,sal,\
@@ -172,7 +173,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\
 	sal/osl/unx/mutex \
 	sal/osl/unx/nlsupport \
 	sal/osl/unx/pipe \
-	sal/osl/unx/profile \
 	sal/osl/unx/readwrite_helper \
 	sal/osl/unx/security \
 	sal/osl/unx/socket \
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.cxx
similarity index 99%
rename from sal/osl/unx/profile.c
rename to sal/osl/unx/profile.cxx
index 906109b..53f0757 100644
--- a/sal/osl/unx/profile.c
+++ b/sal/osl/unx/profile.cxx
@@ -135,7 +135,7 @@ static void osl_ProfileGenerateExtension(const sal_Char* pszFileName, const sal_
 static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, oslProfileOption Flags);
 
 /* implemented in file.c */
-extern oslFileError FileURLToPath( char *, size_t, rtl_uString* );
+extern "C" oslFileError FileURLToPath( char *, size_t, rtl_uString* );
 
 oslProfile SAL_CALL osl_openProfile(rtl_uString *ustrProfileName, oslProfileOption Options)
 {
@@ -151,7 +151,7 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o
 {
     osl_TFile*        pFile;
     osl_TProfileImpl* pProfile;
-    sal_Bool bRet = sal_False;
+    bool bRet = false;
 
 #ifdef TRACE_OSL_PROFILE
     OSL_TRACE("In  osl_openProfile");
@@ -1288,7 +1288,7 @@ static osl_TStamp closeFileImpl(osl_TFile* pFile, oslProfileOption Flags)
 
 static sal_Bool OslProfile_rewindFile(osl_TFile* pFile, sal_Bool bTruncate)
 {
-    sal_Bool bRet = sal_True;
+    bool bRet = true;
 #ifdef TRACE_OSL_PROFILE
     OSL_TRACE("In  osl_OslProfile_rewindFile");
 #endif
@@ -1881,7 +1881,7 @@ static sal_Bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile)
             if (! addEntry(pProfile, &pProfile->m_Sections[pProfile->m_NoSections - 1],
                            i, pStr, pChar - pStr))
             {
-                OSL_ASSERT(0);
+                OSL_ASSERT(false);
                 continue;
             }
 
@@ -1892,7 +1892,7 @@ static sal_Bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile)
 
             if (! addSection(pProfile, i, pStr + 1, pChar - pStr - 1))
             {
-                OSL_ASSERT(0);
+                OSL_ASSERT(false);
                 continue;
             }
 
@@ -1987,7 +1987,7 @@ static sal_Bool storeProfile(osl_TProfileImpl* pProfile, sal_Bool bCleanup)
 static osl_TFile* osl_openTmpProfileImpl(osl_TProfileImpl* pProfile)
 {
     osl_TFile* pFile=0;
-    sal_Char* pszExtension = "tmp";
+    sal_Char const * pszExtension = "tmp";
     sal_Char pszTmpName[PATH_MAX];
     oslProfileOption PFlags=0;
 


More information about the Libreoffice-commits mailing list