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

Stephan Bergmann sbergman at redhat.com
Tue May 13 04:14:12 PDT 2014


 sal/Library_sal.mk       |    2 
 sal/osl/unx/tempfile.c   |  330 -----------------------------------------------
 sal/osl/unx/tempfile.cxx |  330 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 331 insertions(+), 331 deletions(-)

New commits:
commit f492e45dd2fd1f0ef59f37cd0c3f125203831e98
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue May 13 13:13:35 2014 +0200

    Convert sal/osl/unx/tempfile.c to C++
    
    ...for easier future maintenance
    
    Change-Id: I501076882daa7f36f414f9fa62f790eb85ac3259

diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 1d88f78..122b95f 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/process_impl \
 	sal/osl/unx/profile \
 	sal/osl/unx/security \
+	sal/osl/unx/tempfile \
         $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
 ))
 $(eval $(call gb_Library_add_cobjects,sal,\
@@ -175,7 +176,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\
 	sal/osl/unx/readwrite_helper \
 	sal/osl/unx/socket \
 	sal/osl/unx/system \
-	sal/osl/unx/tempfile \
 	sal/osl/unx/thread \
 	sal/osl/unx/time \
 ))
diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.cxx
similarity index 99%
rename from sal/osl/unx/tempfile.c
rename to sal/osl/unx/tempfile.cxx
index 9ae785b..3d643b8 100644
--- a/sal/osl/unx/tempfile.c
+++ b/sal/osl/unx/tempfile.cxx
@@ -217,7 +217,7 @@ static oslFileError osl_create_temp_file_impl_(
         offset_file_name++;
     }
 
-    while(1) /* try until success */
+    while(true) /* try until success */
     {
         osl_gen_random_name_impl_(&rand_name);
 


More information about the Libreoffice-commits mailing list