diff options
author | Mark Wolf <mark.wolf.music@gmail.com> | 2012-04-04 17:35:53 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-05 12:33:59 +0200 |
commit | 8307fe9f65ef6011014d75041b3ddbc90d421b6a (patch) | |
tree | 5bb58aee1cc96b97608564d207ba2dfa13b84c1a /sal/qa | |
parent | 1cb273098188b5749109b8f58516e7003600a704 (diff) |
Translated German comments to English in folder 'sal'.
sal/qa/rtl_strings/rtl_old_testostring.cxx contains some German comments still
but the code itself uses test strings in German. When the test strings appear
in the comments, they were left unchanged to maintain consistency.
Mark Wolf
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/process/osl_Thread.cxx | 22 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_old_testostring.cxx | 1 |
2 files changed, 11 insertions, 12 deletions
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx index 47aa9eec2455..65b29432f510 100644 --- a/sal/qa/osl/process/osl_Thread.cxx +++ b/sal/qa/osl/process/osl_Thread.cxx @@ -70,23 +70,23 @@ using namespace osl; using ::rtl::OString; // ----------------------------------------------------------------------------- -// Kleine Stopuhr +// Small stopwatch class StopWatch { - TimeValue t1,t2; // Start und Stopzeit + TimeValue t1,t2; // Start and stoptime protected: sal_Int32 m_nNanoSec; sal_Int32 m_nSeconds; - bool m_bIsValid; // TRUE, wenn gestartet und gestoppt - bool m_bIsRunning; // TRUE, wenn gestartet. + bool m_bIsValid; // TRUE, when started and stopped + bool m_bIsRunning; // TRUE, when started public: StopWatch(); ~StopWatch() {} - void start(); // Startet Timer - void stop(); // Stoppt Timer + void start(); // Starts time + void stop(); // Stops time double getSeconds() const; double getTenthSec() const; @@ -94,7 +94,7 @@ public: // ================================= Stop Watch ================================= -// Eine kleine Stop-Uhr fuer den internen Gebrauch. +// A small stopwatch for internal use // (c) Lars Langhans 29.12.1996 22:10 StopWatch::StopWatch():m_bIsValid(false),m_bIsRunning(false) {} @@ -116,12 +116,12 @@ void StopWatch::stop() // pre: Timer should be started // post: Timer will stopped - // gettimeofday(&t2, 0); // Timer ausfragen + // gettimeofday(&t2, 0); // Ask timer osl_getSystemTime( &t2 ); t_print("# %u %u nsecs\n", (unsigned) t2.Seconds, (unsigned) t2.Nanosec); if (m_bIsRunning) - { // check ob gestartet. + { // check if started. m_nSeconds = static_cast<sal_Int32>(t2.Seconds) - static_cast<sal_Int32>(t1.Seconds); if ( t2.Nanosec > t1.Nanosec ) m_nNanoSec = static_cast<sal_Int32>(t2.Nanosec) - static_cast<sal_Int32>(t1.Nanosec); @@ -143,8 +143,8 @@ void StopWatch::stop() double StopWatch::getSeconds() const { -// pre: gueltig = TRUE -// BACK: Zeit in Sekunden. +// pre: valid = TRUE +// BACK: time in seconds double nValue = 0.0; if (m_bIsValid) diff --git a/sal/qa/rtl_strings/rtl_old_testostring.cxx b/sal/qa/rtl_strings/rtl_old_testostring.cxx index 70fca4d8148a..435b42880ac2 100644 --- a/sal/qa/rtl_strings/rtl_old_testostring.cxx +++ b/sal/qa/rtl_strings/rtl_old_testostring.cxx @@ -80,7 +80,6 @@ void oldtests::test_OString() TEST_ENSURE( s2.lastIndexOf('M') == 0, "test_OString error 10"); TEST_ENSURE( s2.lastIndexOf('t', s2.getLength() - 8) == 8, "test_OString error 9"); - // "Mein erster RTL OString ist ein String aus der RTL Library\n" // | | | | | | | | | | | | // Index 0 5 10 15 20 25 30 35 40 45 50 55 |