diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-10-04 17:56:26 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-10-04 17:56:26 +0300 |
commit | e185bf58b731ca5eb66c98b6865760236883cc7c (patch) | |
tree | be36ad225ce51ebe615dfa6ecacebb78c3fc1bd5 /src/libslic3r/SLA | |
parent | b028e169c8dae1f1a03c64e0c00490750edffd84 (diff) |
Replaced "Simple shorthands for smart pointers" shptr, uqptr, wkptr
with their original names. Using weird shorthands makes the code
unreadable for anyone but the original author.
template<class T> using shptr = std::shared_ptr<T>;
template<class T> using uqptr = std::unique_ptr<T>;
template<class T> using wkptr = std::weak_ptr<T>;
Diffstat (limited to 'src/libslic3r/SLA')
-rw-r--r-- | src/libslic3r/SLA/RasterBase.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libslic3r/SLA/RasterBase.hpp b/src/libslic3r/SLA/RasterBase.hpp index 1cd688ccb..1eba360e3 100644 --- a/src/libslic3r/SLA/RasterBase.hpp +++ b/src/libslic3r/SLA/RasterBase.hpp @@ -13,10 +13,6 @@ namespace Slic3r { -template<class T> using uqptr = std::unique_ptr<T>; -template<class T> using shptr = std::shared_ptr<T>; -template<class T> using wkptr = std::weak_ptr<T>; - namespace sla { // Raw byte buffer paired with its size. Suitable for compressed image data. @@ -112,7 +108,7 @@ struct PPMRasterEncoder { std::ostream& operator<<(std::ostream &stream, const EncodedRaster &bytes); // If gamma is zero, thresholding will be performed which disables AA. -uqptr<RasterBase> create_raster_grayscale_aa( +std::unique_ptr<RasterBase> create_raster_grayscale_aa( const RasterBase::Resolution &res, const RasterBase::PixelDim & pxdim, double gamma = 1.0, |