Skip to content

Commit 4eba8ad

Browse files
authored
Merge pull request #22 from kimkulling/kimkulling/rename_main_namespace
Refactoring: Renaming namespace
2 parents d2c2922 + ee4c645 commit 4eba8ad

34 files changed

+53
-54
lines changed

code/Memory/MemUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222
-----------------------------------------------------------------------------------------------*/
2323
#include <cppcore/Memory/MemUtils.h>
2424

25-
namespace CPPCore {
25+
namespace cppcore {
2626

2727
void MemUtils::clearMemory( void *buffer, size_t size ) {
2828
::memset( buffer, 0, size );
2929
}
3030

31-
} // Namespace CPPCore
31+
} // Namespace cppcore

code/Random/RandomGenerator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626
#include <time.h>
2727
#include <cassert>
2828

29-
namespace CPPCore {
29+
namespace cppcore {
3030

3131
static const unsigned int N = 624;
3232
static const unsigned int M = 397;
@@ -98,4 +98,4 @@ int RandomGenerator::get( int lower, int upper ) {
9898
return ret;
9999
}
100100

101-
} // Namespace CPPCore
101+
} // Namespace cppcore

include/cppcore/CPPCoreCommon.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2929
#include <stdio.h>
3030
#include <stdarg.h>
3131

32-
namespace CPPCore {
32+
namespace cppcore {
3333

3434
#if defined( _WIN32 ) || defined( _WIN64 )
3535
# define CPPCORE_WINDOWS
@@ -103,4 +103,4 @@ public: \
103103
//-------------------------------------------------------------------------------------------------
104104
#define CPPCORE_ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
105105

106-
} // Namespace CPPCore
106+
} // Namespace cppcore

include/cppcore/Common/Hash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#include <cppcore/CPPCoreCommon.h>
2626

27-
namespace CPPCore {
27+
namespace cppcore {
2828

2929
//-------------------------------------------------------------------------------------------------
3030
/// @class Hash
@@ -122,4 +122,4 @@ inline unsigned int Hash::hashValue() const {
122122
return m_hash;
123123
}
124124

125-
} // Namespace CPPCore
125+
} // Namespace cppcore

include/cppcore/Common/TBitField.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <cppcore/CPPCoreCommon.h>
2626
#include <cassert>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929

3030
//-------------------------------------------------------------------------------------------------
3131
/// @class TBitField
@@ -135,4 +135,4 @@ inline size_t TBitField<T>::maxBits() const {
135135
return numBits;
136136
}
137137

138-
} // namespace CPPCore
138+
} // namespace cppcore

include/cppcore/Common/TOptional.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#include <cppcore/CPPCoreCommon.h>
2626

27-
namespace CPPCore {
27+
namespace cppcore {
2828

2929
//-------------------------------------------------------------------------------------------------
3030
/// @class TOptional
@@ -101,4 +101,4 @@ inline T &TOptional<T>::operator = (const T &value) {
101101
return *this;
102102
}
103103

104-
}
104+
} // namespace cppcore

include/cppcore/Common/TSharedPtr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#include <cppcore/CPPCoreCommon.h>
2626

27-
namespace CPPCore {
27+
namespace cppcore {
2828

2929
//-------------------------------------------------------------------------------------------------
3030
/// @class TSharedPtr
@@ -160,4 +160,4 @@ inline bool TSharedPtr<T>::operator!=(const TSharedPtr<T> &rhs) const {
160160
return !(*this == rhs);
161161
}
162162

163-
} // Namespace CPPCore
163+
} // Namespace cppcore

include/cppcore/Common/TStringBase.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626
#include <cppcore/CPPCoreCommon.h>
2727
#include <malloc.h>
2828

29-
namespace CPPCore {
29+
namespace cppcore {
3030

3131
template <class T>
3232
struct Allocator {
@@ -189,4 +189,3 @@ template <class TCharType>
189189
inline TCharType *TStringView<TCharType>::data() const {
190190
}
191191

192-
} // Namespace CPPCore

include/cppcore/Common/Variant.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2828
#include <cassert>
2929
#include <string>
3030

31-
namespace CPPCore {
31+
namespace cppcore {
3232

3333
//-------------------------------------------------------------------------------------------------
3434
/// @class Variant
@@ -530,4 +530,4 @@ inline void Variant::reserve(Type type, size_t size) {
530530
m_Type = type;
531531
}
532532

533-
} // Namespace CPPCore
533+
} // Namespace cppcore

include/cppcore/Container/TArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <cppcore/CPPCoreCommon.h>
2626
#include <cppcore/Memory/TDefaultAllocator.h>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929
namespace Details {
3030

3131
inline static size_t getGrowing(size_t size) {
@@ -532,4 +532,4 @@ inline bool TArray<T, TAlloc>::operator == (const TArray<T, TAlloc> &rhs) const
532532
return true;
533533
}
534534

535-
} // Namespace CPPCore
535+
} // Namespace cppcore

include/cppcore/Container/THashMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <cppcore/Common/Hash.h>
2626
#include <cppcore/Memory/TDefaultAllocator.h>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929

3030
//-------------------------------------------------------------------------------------------------
3131
/// @class THashMap
@@ -360,4 +360,4 @@ inline void THashMap<T, U, TAlloc>::Node::releaseList() {
360360
}
361361
}
362362

363-
} // Namespace CPPCore
363+
} // Namespace cppcore

include/cppcore/Container/TList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <cppcore/CPPCoreCommon.h>
2626
#include <cppcore/Memory/TDefaultAllocator.h>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929

3030
//-------------------------------------------------------------------------------------------------
3131
/// @class TList
@@ -474,4 +474,4 @@ inline T &TList<T, TAlloc>::Iterator::operator*() const {
474474
return m_pNode->m_Item;
475475
}
476476

477-
} // Namespace CPPCore
477+
} // Namespace cppcore

include/cppcore/Container/TQueue.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <cppcore/Container/TList.h>
2626
#include <cppcore/Memory/TDefaultAllocator.h>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929

3030
//-------------------------------------------------------------------------------------------------
3131
/// @class TQueue
@@ -150,4 +150,4 @@ inline bool TQueue<T, TAlloc>::operator == ( const TQueue<T, TAlloc> &rhs ) cons
150150
return m_QueueData == rhs.m_QueueData;
151151
}
152152

153-
} // Namespace CPPCore
153+
} // Namespace cppcore

include/cppcore/Container/TStaticArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <string.h>
2626
#include <cassert>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929

3030
//-------------------------------------------------------------------------------------------------
3131
/// @class TArray
@@ -153,4 +153,4 @@ inline TStaticArray<T, len> &TStaticArray<T, len>::operator=(const TStaticArray<
153153
return *this;
154154
}
155155

156-
} // namespace CPPCore
156+
} // namespace cppcore

include/cppcore/IO/FileSystem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2828
#include <sys/statvfs.h>
2929
#endif
3030

31-
namespace CPPCore {
31+
namespace cppcore {
3232

3333
/// @brief The file-system space info.
3434
struct FSSpace {
@@ -99,4 +99,4 @@ inline FSSpace *FileSystem::getFreeDiskSpace() {
9999
return &m_fsSpace;
100100
}
101101

102-
} // Namespace CPPCore
102+
} // Namespace cppcore

include/cppcore/Memory/MemUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#include <string.h>
2626
#include <cinttypes>
2727

28-
namespace CPPCore {
28+
namespace cppcore {
2929

3030
#define ALIGN_MASK(value, mask) (((value) + (mask)) & ((~0) & (~(mask))))
3131

@@ -78,4 +78,4 @@ inline const void *MemUtils::alignPtr(void *ptr, size_t extra, size_t align) {
7878
return unaligned.mPtr;
7979
}
8080

81-
} // Namespace CPPCore
81+
} // Namespace cppcore

include/cppcore/Memory/TDefaultAllocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#include <string>
2626

27-
namespace CPPCore {
27+
namespace cppcore {
2828

2929
//-------------------------------------------------------------------------------------------------
3030
/// @class TDefaultAllocator
@@ -129,4 +129,4 @@ inline void TDefaultAllocator<T>::dumpAllocations(std::string &allocs) {
129129
// empty
130130
}
131131

132-
} // Namespace CPPCore
132+
} // Namespace cppcore

include/cppcore/Memory/TPoolAllocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include <string>
2828

29-
namespace CPPCore {
29+
namespace cppcore {
3030

3131
//-------------------------------------------------------------------------------------------------
3232
/// @class TPoolAllocator
@@ -283,4 +283,4 @@ void TPoolAllocator<T>::reset() {
283283
m_current = m_first;
284284
}
285285

286-
} // Namespace CPPCore
286+
} // Namespace cppcore

include/cppcore/Memory/TStackAllocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include <string>
2828

29-
namespace CPPCore {
29+
namespace cppcore {
3030

3131
//-------------------------------------------------------------------------------------------------
3232
/// @class TStackAllocator
@@ -214,4 +214,4 @@ inline void TStackAllocator<T>::dumpAllocations(std::string &allocs) {
214214
allocs += "\n";
215215
}
216216

217-
} // Namespace CPPCore
217+
} // Namespace cppcorecppcore

include/cppcore/Random/RandomGenerator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include <memory>
2828

29-
namespace CPPCore {
29+
namespace cppcore {
3030

3131
//-------------------------------------------------------------------------------------------------
3232
/// @class RandomGenerator
@@ -63,4 +63,4 @@ class DLL_CPPCORE_EXPORT RandomGenerator {
6363
GeneratorType m_type;
6464
};
6565

66-
} // Namespace CPPCore
66+
} // Namespace cppcore

test/CPPCoreCommonTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2727

2828
#include "gtest/gtest.h"
2929

30-
using namespace CPPCore;
30+
using namespace cppcore;
3131

3232
//---------------------------------------------------------------------------------------------
3333
class CPPCoreCommonTest : public testing::Test {

test/Random/RandomGeneratorTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
#include <cppcore/Random/RandomGenerator.h>
2424
#include <gtest/gtest.h>
2525

26-
using namespace CPPCore;
26+
using namespace cppcore;
2727

2828
class RandomGeneratorTest : public testing::Test {
2929
// empty

test/common/HashTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include "gtest/gtest.h"
2828

29-
using namespace CPPCore;
29+
using namespace cppcore;
3030

3131
class HashTest : public testing::Test {
3232
protected:

test/common/TBitFieldTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2727

2828
#include "gtest/gtest.h"
2929

30-
using namespace CPPCore;
30+
using namespace cppcore;
3131

3232
class TBitFieldTest : public testing::Test {
3333
// empty

test/common/TOptionalTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
#include <gtest/gtest.h>
2424
#include <cppcore/Common/TOptional.h>
2525

26-
using namespace ::CPPCore;
26+
using namespace ::cppcore;
2727

2828
class TOptionalTest : public ::testing::Test {
2929
// empty

test/common/TSharedPtrTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#include <cppcore/Common/TSharedPtr.h>
2626

27-
using namespace ::CPPCore;
27+
using namespace ::cppcore;
2828

2929
class TSharedPtrTest : public ::testing::Test {
3030
// empty

test/common/VariantTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424

2525
#include <cppcore/Common/Variant.h>
2626

27-
using namespace CPPCore;
27+
using namespace cppcore;
2828

2929
//-------------------------------------------------------------------------------------------------
3030
/// @class ::VariantTest

test/container/TArrayTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3030
#include <sstream>
3131
#include <iostream>
3232

33-
using namespace CPPCore;
33+
using namespace cppcore;
3434

3535
// Some test-data
3636
static const size_t ArraySize = 4;

test/container/THashMapTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include "gtest/gtest.h"
2828

29-
using namespace ::CPPCore;
29+
using namespace ::cppcore;
3030

3131
class THashMapTest : public ::testing::Test {
3232
// empty

test/container/TListTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3030
#include <iostream>
3131
#include <vector>
3232

33-
using namespace CPPCore;
33+
using namespace cppcore;
3434

3535
//-------------------------------------------------------------------------------------------------
3636
/// @class TListTest

test/container/TQueueTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626

2727
#include "gtest/gtest.h"
2828

29-
using namespace CPPCore;
29+
using namespace cppcore;
3030

3131
class TQueueTest : public testing::Test {
3232
// empty

0 commit comments

Comments
 (0)