diff options
Diffstat (limited to 'Swiften/Base')
-rw-r--r-- | Swiften/Base/String.h | 2 | ||||
-rw-r--r-- | Swiften/Base/UnitTest/StringTest.cpp | 8 | ||||
-rw-r--r-- | Swiften/Base/sleep.cpp | 8 | ||||
-rw-r--r-- | Swiften/Base/sleep.h | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/Swiften/Base/String.h b/Swiften/Base/String.h index 336a663..c4a44a3 100644 --- a/Swiften/Base/String.h +++ b/Swiften/Base/String.h @@ -40,7 +40,7 @@ namespace Swift { std::vector<String> split(char c) const; size_t getLength() const; - String getLowerCase() const; + String getLowerCase() const; void removeAll(char c); diff --git a/Swiften/Base/UnitTest/StringTest.cpp b/Swiften/Base/UnitTest/StringTest.cpp index 1dd44fb..6ad12fd 100644 --- a/Swiften/Base/UnitTest/StringTest.cpp +++ b/Swiften/Base/UnitTest/StringTest.cpp @@ -23,7 +23,7 @@ class StringTest : public CppUnit::TestFixture CPPUNIT_TEST(testReplaceAll_LastChar); CPPUNIT_TEST(testReplaceAll_ConsecutiveChars); CPPUNIT_TEST(testReplaceAll_MatchingReplace); - CPPUNIT_TEST(testGetLowerCase); + CPPUNIT_TEST(testGetLowerCase); CPPUNIT_TEST(testSplit); CPPUNIT_TEST_SUITE_END(); @@ -144,11 +144,11 @@ class StringTest : public CppUnit::TestFixture CPPUNIT_ASSERT_EQUAL(String("abbbc"), testling); } - void testGetLowerCase() { + void testGetLowerCase() { String testling("aBcD e"); - CPPUNIT_ASSERT_EQUAL(String("abcd e"), testling.getLowerCase()); - } + CPPUNIT_ASSERT_EQUAL(String("abcd e"), testling.getLowerCase()); + } void testSplit() { std::vector<String> result = String("abc def ghi").split(' '); diff --git a/Swiften/Base/sleep.cpp b/Swiften/Base/sleep.cpp index cecfd72..99d0fe6 100644 --- a/Swiften/Base/sleep.cpp +++ b/Swiften/Base/sleep.cpp @@ -5,10 +5,10 @@ namespace Swift { void sleep(unsigned int msecs) { - boost::xtime xt; - boost::xtime_get(&xt, boost::TIME_UTC); - xt.nsec += msecs*1000000; - boost::thread::sleep(xt); + boost::xtime xt; + boost::xtime_get(&xt, boost::TIME_UTC); + xt.nsec += msecs*1000000; + boost::thread::sleep(xt); } } diff --git a/Swiften/Base/sleep.h b/Swiften/Base/sleep.h index b2a4ef1..bcebc4c 100644 --- a/Swiften/Base/sleep.h +++ b/Swiften/Base/sleep.h @@ -2,7 +2,7 @@ #define SWIFTEN_sleep_H namespace Swift { - void sleep(unsigned int msecs); + void sleep(unsigned int msecs); } #endif |