From 9fe08de5b5708dbfd455b0fccaa4f8a992b14eb2 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 6 Apr 2017 12:25:39 -0700 Subject: Fixed D3D12 warnings, updated copyright notice --- Common/include/BasicFileStream.h | 2 +- Common/include/BasicTypes.h | 2 +- Common/include/DataBlobImpl.h | 2 +- Common/include/DebugUtilities.h | 2 +- Common/include/DefaultRawMemoryAllocator.h | 2 +- Common/include/Errors.h | 2 +- Common/include/FileWrapper.h | 2 +- Common/include/FixedBlockMemoryAllocator.h | 2 +- Common/include/FormatMessage.h | 2 +- Common/include/HashUtils.h | 2 +- Common/include/InterfaceID.h | 2 +- Common/include/LockHelper.h | 2 +- Common/include/ObjectBase.h | 2 +- Common/include/RefCntAutoPtr.h | 2 +- Common/include/RefCountedObjectImpl.h | 2 +- Common/include/STDAllocator.h | 2 +- Common/include/StringTools.h | 12 +++++++++++- Common/include/Timer.h | 2 +- Common/include/UniqueIdentifier.h | 2 +- Common/include/ValidatedCast.h | 2 +- Common/include/pch.h | 2 +- 21 files changed, 31 insertions(+), 21 deletions(-) (limited to 'Common/include') diff --git a/Common/include/BasicFileStream.h b/Common/include/BasicFileStream.h index af71f9f8..306c4225 100644 --- a/Common/include/BasicFileStream.h +++ b/Common/include/BasicFileStream.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/BasicTypes.h b/Common/include/BasicTypes.h index 45840213..771faa15 100644 --- a/Common/include/BasicTypes.h +++ b/Common/include/BasicTypes.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/DataBlobImpl.h b/Common/include/DataBlobImpl.h index 7b243f2c..5b10489e 100644 --- a/Common/include/DataBlobImpl.h +++ b/Common/include/DataBlobImpl.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/DebugUtilities.h b/Common/include/DebugUtilities.h index 8027b0ed..040a3447 100644 --- a/Common/include/DebugUtilities.h +++ b/Common/include/DebugUtilities.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/DefaultRawMemoryAllocator.h b/Common/include/DefaultRawMemoryAllocator.h index 142fe6b9..bb6c2730 100644 --- a/Common/include/DefaultRawMemoryAllocator.h +++ b/Common/include/DefaultRawMemoryAllocator.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/Errors.h b/Common/include/Errors.h index c7028708..c5d4a3bd 100644 --- a/Common/include/Errors.h +++ b/Common/include/Errors.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/FileWrapper.h b/Common/include/FileWrapper.h index 41e96084..ec5ab6b1 100644 --- a/Common/include/FileWrapper.h +++ b/Common/include/FileWrapper.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/FixedBlockMemoryAllocator.h b/Common/include/FixedBlockMemoryAllocator.h index e91b5157..66013060 100644 --- a/Common/include/FixedBlockMemoryAllocator.h +++ b/Common/include/FixedBlockMemoryAllocator.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/FormatMessage.h b/Common/include/FormatMessage.h index abbacce2..4a6a552e 100644 --- a/Common/include/FormatMessage.h +++ b/Common/include/FormatMessage.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/HashUtils.h b/Common/include/HashUtils.h index 825d7171..cf883eb9 100644 --- a/Common/include/HashUtils.h +++ b/Common/include/HashUtils.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/InterfaceID.h b/Common/include/InterfaceID.h index dee585e3..d24f0b75 100644 --- a/Common/include/InterfaceID.h +++ b/Common/include/InterfaceID.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/LockHelper.h b/Common/include/LockHelper.h index 34b90f35..47e6b6de 100644 --- a/Common/include/LockHelper.h +++ b/Common/include/LockHelper.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/ObjectBase.h b/Common/include/ObjectBase.h index f92cac1e..9be99f24 100644 --- a/Common/include/ObjectBase.h +++ b/Common/include/ObjectBase.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/RefCntAutoPtr.h b/Common/include/RefCntAutoPtr.h index bc886187..2d99699e 100644 --- a/Common/include/RefCntAutoPtr.h +++ b/Common/include/RefCntAutoPtr.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/RefCountedObjectImpl.h b/Common/include/RefCountedObjectImpl.h index f42e56f1..d3c8d38c 100644 --- a/Common/include/RefCountedObjectImpl.h +++ b/Common/include/RefCountedObjectImpl.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/STDAllocator.h b/Common/include/STDAllocator.h index 9fc0c5cd..522e0844 100644 --- a/Common/include/STDAllocator.h +++ b/Common/include/STDAllocator.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/StringTools.h b/Common/include/StringTools.h index 1fe07d48..e1327d0a 100644 --- a/Common/include/StringTools.h +++ b/Common/include/StringTools.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,16 @@ inline std::string NarrowString(const std::wstring &WideStr) return NarrowStr; } +inline std::wstring WidenString(const char *Str) +{ + std::wstring WideStr; + const std::ctype& ctfacet = std::use_facet< std::ctype >( std::wstringstream().getloc() ) ; + for( auto CurrChar = Str; *CurrChar != 0; ++CurrChar ) + WideStr.push_back( ctfacet.widen( *CurrChar ) ); + + return WideStr; +} + inline std::wstring WidenString(const std::string &Str) { std::wstring WideStr; diff --git a/Common/include/Timer.h b/Common/include/Timer.h index d0023a87..8b4c82c6 100644 --- a/Common/include/Timer.h +++ b/Common/include/Timer.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/UniqueIdentifier.h b/Common/include/UniqueIdentifier.h index ce539608..5d831579 100644 --- a/Common/include/UniqueIdentifier.h +++ b/Common/include/UniqueIdentifier.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/ValidatedCast.h b/Common/include/ValidatedCast.h index 2f68f912..1b775ad6 100644 --- a/Common/include/ValidatedCast.h +++ b/Common/include/ValidatedCast.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/Common/include/pch.h b/Common/include/pch.h index 6aba18ab..14dca411 100644 --- a/Common/include/pch.h +++ b/Common/include/pch.h @@ -1,4 +1,4 @@ -/* Copyright 2015-2016 Egor Yusov +/* Copyright 2015-2017 Egor Yusov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. -- cgit v1.2.3