Browse Source

Removed std::optional backwards compatibility.

This was a dirty mess. Good riddance. Also removing the include from the
header now, as it has a forward declaration and thus is not needed.
pull/374/head
Vladimír Vondruš 7 years ago
parent
commit
24b8ff086c
  1. 4
      doc/changelog.dox
  2. 1
      doc/generated/primitives.cpp
  3. 1
      doc/generated/shaders.cpp
  4. 1
      doc/snippets/MagnumTrade.cpp
  5. 1
      doc/snippets/debugtools-compareimage.cpp
  6. 1
      src/Magnum/DebugTools/Test/CompareImageTest.cpp
  7. 1
      src/Magnum/TextureTools/distancefieldconverter.cpp
  8. 1
      src/Magnum/Trade/AbstractImageConverter.cpp
  9. 5
      src/Magnum/Trade/AbstractImageConverter.h
  10. 1
      src/Magnum/Trade/AbstractImporter.cpp
  11. 5
      src/Magnum/Trade/AbstractImporter.h
  12. 1
      src/Magnum/Trade/Test/AbstractImageConverterTest.cpp
  13. 1
      src/Magnum/Trade/Test/AbstractImporterTest.cpp
  14. 1
      src/Magnum/Trade/imageconverter.cpp
  15. 4
      src/MagnumExternal/CMakeLists.txt
  16. 32
      src/MagnumExternal/Optional/CMakeLists.txt
  17. 68
      src/MagnumExternal/Optional/OptionalWrapper.h
  18. 47
      src/MagnumExternal/Optional/Test/CMakeLists.txt
  19. 111
      src/MagnumExternal/Optional/Test/StdOptionalTest.cpp
  20. 39
      src/MagnumExternal/Optional/optional.hpp
  21. 1
      src/MagnumPlugins/AnyImageImporter/AnyImageImporter.cpp
  22. 1
      src/MagnumPlugins/AnyImageImporter/Test/AnyImageImporterTest.cpp
  23. 2
      src/MagnumPlugins/AnySceneImporter/AnySceneImporter.cpp
  24. 1
      src/MagnumPlugins/AnySceneImporter/Test/AnySceneImporterTest.cpp
  25. 1
      src/MagnumPlugins/MagnumFont/MagnumFont.cpp
  26. 1
      src/MagnumPlugins/ObjImporter/ObjImporter.cpp
  27. 1
      src/MagnumPlugins/ObjImporter/Test/ObjImporterTest.cpp
  28. 1
      src/MagnumPlugins/TgaImageConverter/Test/TgaImageConverterTest.cpp
  29. 1
      src/MagnumPlugins/TgaImporter/Test/TgaImporterTest.cpp
  30. 3
      src/MagnumPlugins/TgaImporter/TgaImporter.cpp

4
doc/changelog.dox

@ -186,6 +186,10 @@ See also:
@subsection changelog-latest-compatibility Potential compatibility breakages, removed APIs
- Removed deprecated implicit conversion @ref Corrade::Containers::Optional
to @cpp std::optional @ce, deprecated in January 2018. The class now
contains an *explicit* and opt-in STL compatibility, see its documentation
for more information.
- Removed the `Magnum/Test/AbstractOpenGLTester.h` header that was deprecated
in January 2017. Use @ref Magnum/GL/OpenGLTester.h and the
@ref GL::OpenGLTester library instead. Note that the deprecated

1
doc/generated/primitives.cpp

@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/Utility/Directory.h>

1
doc/generated/shaders.cpp

@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/Utility/Directory.h>

1
doc/snippets/MagnumTrade.cpp

@ -24,6 +24,7 @@
*/
#include <unordered_map>
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/Directory.h>
#include "Magnum/PixelFormat.h"

1
doc/snippets/debugtools-compareimage.cpp

@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/Directory.h>

1
src/Magnum/DebugTools/Test/CompareImageTest.cpp

@ -25,6 +25,7 @@
#include <sstream>
#include <numeric>
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/TestSuite/Compare/Container.h>

1
src/Magnum/TextureTools/distancefieldconverter.cpp

@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/Arguments.h>
#include <Corrade/Utility/Directory.h>
#include <Corrade/PluginManager/Manager.h>

1
src/Magnum/Trade/AbstractImageConverter.cpp

@ -27,6 +27,7 @@
#include <Corrade/Containers/Array.h>
#include <Corrade/Containers/EnumSet.hpp>
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/Assert.h>
#include <Corrade/Utility/Directory.h>

5
src/Magnum/Trade/AbstractImageConverter.h

@ -29,17 +29,12 @@
* @brief Class @ref Magnum::Trade::AbstractImageConverter
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/AbstractManagingPlugin.h>
#include "Magnum/Magnum.h"
#include "Magnum/Trade/Trade.h"
#include "Magnum/Trade/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include "MagnumExternal/Optional/OptionalWrapper.h"
#endif
namespace Magnum { namespace Trade {
/**

1
src/Magnum/Trade/AbstractImporter.cpp

@ -27,6 +27,7 @@
#include <Corrade/Containers/Array.h>
#include <Corrade/Containers/EnumSet.hpp>
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/Utility/Assert.h>
#include <Corrade/Utility/Directory.h>

5
src/Magnum/Trade/AbstractImporter.h

@ -31,17 +31,12 @@
#include <memory>
#include <Corrade/Containers/EnumSet.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/AbstractManagingPlugin.h>
#include "Magnum/Magnum.h"
#include "Magnum/Trade/Trade.h"
#include "Magnum/Trade/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include "MagnumExternal/Optional/OptionalWrapper.h"
#endif
namespace Magnum { namespace Trade {
/**

1
src/Magnum/Trade/Test/AbstractImageConverterTest.cpp

@ -25,6 +25,7 @@
#include <sstream>
#include <Corrade/Containers/Array.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/TestSuite/Compare/Container.h>
#include <Corrade/TestSuite/Compare/FileToString.h>

1
src/Magnum/Trade/Test/AbstractImporterTest.cpp

@ -25,6 +25,7 @@
#include <sstream>
#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/Directory.h>

1
src/Magnum/Trade/imageconverter.cpp

@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/Utility/Arguments.h>
#include <Corrade/Utility/Directory.h>

4
src/MagnumExternal/CMakeLists.txt vendored

@ -32,7 +32,3 @@ endif()
if(WITH_VK)
add_subdirectory(Vulkan)
endif()
if(MAGNUM_BUILD_DEPRECATED)
add_subdirectory(Optional)
endif()

32
src/MagnumExternal/Optional/CMakeLists.txt vendored

@ -1,32 +0,0 @@
#
# This file is part of Magnum.
#
# Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
# Vladimír Vondruš <mosra@centrum.cz>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
if(MAGNUM_BUILD_DEPRECATED)
install(FILES optional.hpp OptionalWrapper.h DESTINATION ${MAGNUM_EXTERNAL_INCLUDE_INSTALL_DIR}/Optional)
endif()
if(BUILD_TESTS)
add_subdirectory(Test)
endif()

68
src/MagnumExternal/Optional/OptionalWrapper.h vendored

@ -1,68 +0,0 @@
#ifndef MagnumExternal_Optional_OptionalWrapper_hpp
#define MagnumExternal_Optional_OptionalWrapper_hpp
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#if !defined(Corrade_Containers_Optional_h) || !defined(Corrade_Utility_Macros_h) || !defined(MAGNUM_BUILD_DEPRECATED)
#error This file is not meant to be used directly.
#endif
/* Cover your eyes. This will hurt. And wash your hands after. */
#ifdef MAGNUM_BUILD_DEPRECATED
#ifdef __has_include
#if __has_include(<optional>) && CORRADE_CXX_STANDARD >= 201703L
#define _MAGNUM_HAS_STD_OPTIONAL
#include <optional>
namespace Corrade { namespace Containers { namespace Implementation {
template<class T> struct OptionalConverter<T, std::optional<T>> {
CORRADE_DEPRECATED("use Corrade::Containers::Optional instead") static std::optional<T> to(const Optional<T>& other) {
if(other) return std::optional<T>{*other};
else return std::nullopt;
}
CORRADE_DEPRECATED("use Corrade::Containers::Optional instead") static std::optional<T> to(Optional<T>&& other) {
if(other) return std::optional<T>{std::move(*other)};
else return std::nullopt;
}
};
}}}
#endif
#endif
#ifdef _MAGNUM_HAS_STD_OPTIONAL
#else
namespace std {
template<class T> using optional CORRADE_DEPRECATED_ALIAS("use Corrade::Containers::Optional instead") = Corrade::Containers::Optional<T>;
constexpr CORRADE_DEPRECATED("use Corrade::Containers::NullOpt instead") Corrade::Containers::NullOptT nullopt{Corrade::Containers::NullOptT::Init{}};
template<class T> CORRADE_DEPRECATED("use Corrade::Containers::optional() instead") inline Corrade::Containers::Optional<typename std::decay<T>::type> make_optional(T&& value) {
return Corrade::Containers::Optional<typename std::decay<T>::type>{std::forward<T>(value)};
}
}
#endif
#endif
#endif

47
src/MagnumExternal/Optional/Test/CMakeLists.txt vendored

@ -1,47 +0,0 @@
#
# This file is part of Magnum.
#
# Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
# Vladimír Vondruš <mosra@centrum.cz>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
corrade_add_test(StdOptionalTest StdOptionalTest.cpp)
target_include_directories(StdOptionalTest PRIVATE
${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}/src)
set_target_properties(StdOptionalTest PROPERTIES FOLDER "MagnumExternal/Optional/Test")
# Try using C++17 on newer compilers. Can't use VERSION_GREATER_EQUAL because
# older CMake doesn't support these. No idea how to detect libc++ presence on
# non-Apple platforms (or even version), so I'm giving up there, testing just
# elsewhere.
#
# Compiler versions where std::optional is supported:
# MSVC 2017 (trust me, I know)
# GCC libstdc++ 7.1 (see https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#table.cxx17_status)
# libc++ 4.0 (see https://launchpad.net/ubuntu/+source/libc++)
# Apple Clang 9.0 correspons to LLVM 4.0 (see https://gist.github.com/yamaya/2924292#gistcomment-2289472)
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "7.1") OR
#(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.0") OR
(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0") OR
(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.10"))
set_target_properties(StdOptionalTest PROPERTIES CORRADE_CXX_STANDARD 17)
endif()

111
src/MagnumExternal/Optional/Test/StdOptionalTest.cpp vendored

@ -1,111 +0,0 @@
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
/* Needs to be here otherwise the deprecation warning inside OptionalConverter
is not ignored */
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4996)
#endif
#include <memory>
#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Tester.h>
#include "Magnum/Magnum.h"
#include "MagnumExternal/Optional/OptionalWrapper.h"
namespace Magnum { namespace Test { namespace {
struct StdOptionalTest: TestSuite::Tester {
explicit StdOptionalTest();
void conversion();
};
StdOptionalTest::StdOptionalTest() {
addTests({&StdOptionalTest::conversion});
}
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
void StdOptionalTest::conversion() {
Debug{} << "Using C++ version" << CORRADE_CXX_STANDARD;
#ifdef __has_include
Debug{} << "__has_include is supported";
#if __has_include(<optional>)
Debug{} << "<optional> header is present";
#else
Debug{} << "<optional> header is not present";
#endif
#if __has_include(<experimental/optional>)
Debug{} << "<experimental/optional> header is present";
#else
Debug{} << "<experimental/optional> header is not present";
#endif
#else
Debug{} << "__has_include is not supported";
#endif
#ifdef _MAGNUM_HAS_STD_OPTIONAL
Debug{} << "Using a conversion to std::optional, C++17 should be present";
CORRADE_VERIFY(CORRADE_CXX_STANDARD >= 201703L);
#else
Debug{} << "Using a typedef to std::optional, C++17 should not be present";
{
#ifdef CORRADE_TARGET_APPLE
CORRADE_EXPECT_FAIL_IF(CORRADE_CXX_STANDARD >= 201703L,
"Even Xcode 9.3 beta doesn't have the <optional> header, only <experimental/optional>, thus a typedef is used.");
#endif
CORRADE_VERIFY(CORRADE_CXX_STANDARD < 201703L);
}
#endif
Containers::Optional<int> a{5};
Containers::Optional<int> b;
std::optional<int> sa = a;
CORRADE_COMPARE(*sa, 5);
std::optional<int> sb = b;
CORRADE_VERIFY(!sb);
std::optional<int> empty = std::nullopt;
CORRADE_VERIFY(!empty);
Containers::Optional<std::unique_ptr<int>> c{std::unique_ptr<int>{new int{7}}};
std::optional<std::unique_ptr<int>> sc = std::move(c);
CORRADE_COMPARE(**sc, 7);
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}}}
CORRADE_TEST_MAIN(Magnum::Test::StdOptionalTest)
#ifdef _MSC_VER
#pragma warning(pop)
#endif

39
src/MagnumExternal/Optional/optional.hpp vendored

@ -1,39 +0,0 @@
#ifndef MagnumExternal_Optional_optional_hpp
#define MagnumExternal_Optional_optional_hpp
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/Macros.h>
#include "Magnum/configure.h"
/* This file is here only to preserve backwards compatibility. It issues a
deprecation warning and includes the Optional wrapper header which itself
doesn't issue a deprecation warning, as it is included from internal code. */
CORRADE_DEPRECATED_FILE("use <Corrade/Containers/Optional.h> instead")
#include "OptionalWrapper.h"
#endif

1
src/MagnumPlugins/AnyImageImporter/AnyImageImporter.cpp

@ -25,6 +25,7 @@
#include "AnyImageImporter.h"
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/Utility/Assert.h>
#include <Corrade/Utility/String.h>

1
src/MagnumPlugins/AnyImageImporter/Test/AnyImageImporterTest.cpp

@ -24,6 +24,7 @@
*/
#include <sstream>
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/Directory.h>

2
src/MagnumPlugins/AnySceneImporter/AnySceneImporter.cpp

@ -25,9 +25,11 @@
#include "AnySceneImporter.h"
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/Utility/Assert.h>
#include <Corrade/Utility/String.h>
#include "Magnum/Trade/AbstractMaterialData.h"
#include "Magnum/Trade/AnimationData.h"
#include "Magnum/Trade/CameraData.h"

1
src/MagnumPlugins/AnySceneImporter/Test/AnySceneImporterTest.cpp

@ -24,6 +24,7 @@
*/
#include <sstream>
#include <Corrade/Containers/Optional.h>
#include <Corrade/PluginManager/Manager.h>
#include <Corrade/TestSuite/Tester.h>

1
src/MagnumPlugins/MagnumFont/MagnumFont.cpp

@ -27,6 +27,7 @@
#include <sstream>
#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/Configuration.h>
#include <Corrade/Utility/Directory.h>
#include <Corrade/Utility/Unicode.h>

1
src/MagnumPlugins/ObjImporter/ObjImporter.cpp

@ -30,6 +30,7 @@
#include <sstream>
#include <unordered_map>
#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/String.h>
#include "Magnum/Mesh.h"

1
src/MagnumPlugins/ObjImporter/Test/ObjImporterTest.cpp

@ -24,6 +24,7 @@
*/
#include <sstream>
#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/Directory.h>

1
src/MagnumPlugins/TgaImageConverter/Test/TgaImageConverterTest.cpp

@ -26,6 +26,7 @@
#include <sstream>
#include <tuple>
#include <Corrade/Containers/Array.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/TestSuite/Compare/Container.h>
#include <Corrade/Utility/Directory.h>

1
src/MagnumPlugins/TgaImporter/Test/TgaImporterTest.cpp

@ -25,6 +25,7 @@
#include <sstream>
#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/TestSuite/Compare/Container.h>
#include <Corrade/Utility/Directory.h>

3
src/MagnumPlugins/TgaImporter/TgaImporter.cpp

@ -28,8 +28,9 @@
#include <algorithm>
#include <fstream>
#include <sstream>
#include <Corrade/Utility/Endianness.h>
#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/Optional.h>
#include <Corrade/Utility/Endianness.h>
#include "Magnum/PixelFormat.h"
#include "Magnum/Math/Swizzle.h"

Loading…
Cancel
Save