[Libreoffice-commits] core.git: sal/cppunittester

Stephan Bergmann sbergman at redhat.com
Mon Mar 31 04:35:37 PDT 2014


 sal/cppunittester/cppunittester.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dc9feb69f86b7c8e4f7b52ea6b4a18abd64b036b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Mar 31 13:35:02 2014 +0200

    Move invariant writes outside loop
    
    Change-Id: Ia254fe382a00be13a631fcc1b23f940352d8d3ba

diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index 0f4d58a..c2bdb13 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -115,9 +115,9 @@ public:
             {
                 tn[i] = '_';
             }
-            tn[len] = '_';
-            tn[len + 1] = 0;
         }
+        tn[len] = '_';
+        tn[len + 1] = 0;
         setenv("LO_TESTNAME", tn, true);
         delete[] tn;
     }


More information about the Libreoffice-commits mailing list