mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-24 13:38:14 +08:00
Delete copy constructor of Raster, we dont want to use that. Getting rid of AGG warnings.
This commit is contained in:
parent
2eddacfb7e
commit
835e89f8c1
@ -260,7 +260,7 @@ namespace agg
|
|||||||
if(mod < 0)
|
if(mod < 0)
|
||||||
{
|
{
|
||||||
delta--;
|
delta--;
|
||||||
mod += dx;
|
mod += static_cast<int>(dx);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_curr_cell.cover += delta;
|
m_curr_cell.cover += delta;
|
||||||
@ -279,10 +279,10 @@ namespace agg
|
|||||||
if (rem < 0)
|
if (rem < 0)
|
||||||
{
|
{
|
||||||
lift--;
|
lift--;
|
||||||
rem += dx;
|
rem += static_cast<int>(dx);
|
||||||
}
|
}
|
||||||
|
|
||||||
mod -= dx;
|
mod -= static_cast<int>(dx);
|
||||||
|
|
||||||
while (ex1 != ex2)
|
while (ex1 != ex2)
|
||||||
{
|
{
|
||||||
@ -290,7 +290,7 @@ namespace agg
|
|||||||
mod += rem;
|
mod += rem;
|
||||||
if(mod >= 0)
|
if(mod >= 0)
|
||||||
{
|
{
|
||||||
mod -= dx;
|
mod -= static_cast<int>(dx);
|
||||||
delta++;
|
delta++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ namespace agg
|
|||||||
if(mod < 0)
|
if(mod < 0)
|
||||||
{
|
{
|
||||||
delta--;
|
delta--;
|
||||||
mod += dy;
|
mod += static_cast<int>(dy);
|
||||||
}
|
}
|
||||||
|
|
||||||
x_from = x1 + delta;
|
x_from = x1 + delta;
|
||||||
@ -440,9 +440,9 @@ namespace agg
|
|||||||
if(rem < 0)
|
if(rem < 0)
|
||||||
{
|
{
|
||||||
lift--;
|
lift--;
|
||||||
rem += dy;
|
rem += static_cast<int>(dy);
|
||||||
}
|
}
|
||||||
mod -= dy;
|
mod -= static_cast<int>(dy);
|
||||||
|
|
||||||
while(ey1 != ey2)
|
while(ey1 != ey2)
|
||||||
{
|
{
|
||||||
@ -450,7 +450,7 @@ namespace agg
|
|||||||
mod += rem;
|
mod += rem;
|
||||||
if (mod >= 0)
|
if (mod >= 0)
|
||||||
{
|
{
|
||||||
mod -= dy;
|
mod -= static_cast<int>(dy);
|
||||||
delta++;
|
delta++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,10 +116,6 @@ Raster::Raster() {}
|
|||||||
|
|
||||||
Raster::~Raster() {}
|
Raster::~Raster() {}
|
||||||
|
|
||||||
Raster::Raster(const Raster &cpy) {
|
|
||||||
*impl_ = *(cpy.impl_);
|
|
||||||
}
|
|
||||||
|
|
||||||
Raster::Raster(Raster &&m):
|
Raster::Raster(Raster &&m):
|
||||||
impl_(std::move(m.impl_)) {}
|
impl_(std::move(m.impl_)) {}
|
||||||
|
|
||||||
@ -188,6 +184,7 @@ void Raster::save(std::ostream& stream, Compression comp)
|
|||||||
<< impl_->resolution().width_px << " "
|
<< impl_->resolution().width_px << " "
|
||||||
<< impl_->resolution().height_px << " "
|
<< impl_->resolution().height_px << " "
|
||||||
<< "255 ";
|
<< "255 ";
|
||||||
|
|
||||||
stream.write(reinterpret_cast<const char*>(impl_->buffer().data()),
|
stream.write(reinterpret_cast<const char*>(impl_->buffer().data()),
|
||||||
impl_->buffer().size()*sizeof(Impl::TBuffer::value_type));
|
impl_->buffer().size()*sizeof(Impl::TBuffer::value_type));
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,8 @@ public:
|
|||||||
/// Constructor taking the resolution and the pixel dimension.
|
/// Constructor taking the resolution and the pixel dimension.
|
||||||
explicit Raster(const Resolution& r, const PixelDim& pd );
|
explicit Raster(const Resolution& r, const PixelDim& pd );
|
||||||
Raster();
|
Raster();
|
||||||
Raster(const Raster& cpy);
|
Raster(const Raster& cpy) = delete;
|
||||||
|
Raster& operator=(const Raster& cpy) = delete;
|
||||||
Raster(Raster&& m);
|
Raster(Raster&& m);
|
||||||
~Raster();
|
~Raster();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user