Browse Source

Backwards compatibility for std::unique_ptr where needed.

pull/374/head
Vladimír Vondruš 7 years ago
parent
commit
697c17279c
  1. 9
      doc/changelog.dox
  2. 4
      src/Magnum/Text/AbstractFont.h
  3. 4
      src/Magnum/Text/AbstractFontConverter.h
  4. 4
      src/Magnum/Trade/AbstractImporter.h

9
doc/changelog.dox

@ -189,6 +189,15 @@ See also:
@subsection changelog-latest-deprecated Deprecated APIs
- All uses of @ref std::unique_ptr in @ref Text::AbstractFont,
@ref Text::AbstractFontConverter and @ref Trade::AbstractImporter are
replaced with @ref Corrade::Containers::Pointer. The types are implicitly
move-convertible to each other if the
@ref Corrade/Containers/PointerStl.h header is included. The header is
included where needed if @ref MAGNUM_BUILD_DEPRECATED is enabled. To ensure
your code keeps with future versions of Magnum, either switch your
code to use @ref Corrade::Containers::Pointer as well or include the
@ref Corrade/Containers/PointerStl.h header explicitly.
- @cpp TextureTools::distanceField() @ce is deprecated due to inefficiency of
its statelessness when doing batch processing. Use the
@ref TextureTools::DistanceField class instead.

4
src/Magnum/Text/AbstractFont.h

@ -39,6 +39,10 @@
#include "Magnum/Text/Text.h"
#include "Magnum/Text/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <Corrade/Containers/PointerStl.h>
#endif
namespace Magnum { namespace Text {
/**

4
src/Magnum/Text/AbstractFontConverter.h

@ -37,6 +37,10 @@
#include "Magnum/Text/Text.h"
#include "Magnum/Text/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <Corrade/Containers/PointerStl.h>
#endif
namespace Magnum { namespace Text {
/**

4
src/Magnum/Trade/AbstractImporter.h

@ -36,6 +36,10 @@
#include "Magnum/Trade/Trade.h"
#include "Magnum/Trade/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <Corrade/Containers/PointerStl.h>
#endif
namespace Magnum { namespace Trade {
/**

Loading…
Cancel
Save