diff --git a/commands/imagelib/effects/kpEffectFlattenCommand.h b/commands/imagelib/effects/kpEffectFlattenCommand.h --- a/commands/imagelib/effects/kpEffectFlattenCommand.h +++ b/commands/imagelib/effects/kpEffectFlattenCommand.h @@ -39,7 +39,7 @@ class kpEffectFlattenCommand : public kpEffectCommandBase { public: - kpEffectFlattenCommand (const QColor &color1, const QColor &color2, + kpEffectFlattenCommand (QColor color1, QColor color2, bool actOnSelection, kpCommandEnvironment *environ); ~kpEffectFlattenCommand () override; diff --git a/commands/imagelib/effects/kpEffectFlattenCommand.cpp b/commands/imagelib/effects/kpEffectFlattenCommand.cpp --- a/commands/imagelib/effects/kpEffectFlattenCommand.cpp +++ b/commands/imagelib/effects/kpEffectFlattenCommand.cpp @@ -28,20 +28,21 @@ #define DEBUG_KP_EFFECT_FLATTEN 0 +#include #include "kpEffectFlattenCommand.h" #include "imagelib/effects/kpEffectFlatten.h" #include //-------------------------------------------------------------------------------- -kpEffectFlattenCommand::kpEffectFlattenCommand (const QColor &color1, - const QColor &color2, +kpEffectFlattenCommand::kpEffectFlattenCommand (QColor color1, + QColor color2, bool actOnSelection, kpCommandEnvironment *environ) : kpEffectCommandBase (i18n ("Flatten"), actOnSelection, environ), - m_color1 (color1), m_color2 (color2) + m_color1 (std::move(color1)), m_color2 (std::move(color2)) { } diff --git a/dialogs/imagelib/transforms/kpTransformPreviewDialog.cpp b/dialogs/imagelib/transforms/kpTransformPreviewDialog.cpp --- a/dialogs/imagelib/transforms/kpTransformPreviewDialog.cpp +++ b/dialogs/imagelib/transforms/kpTransformPreviewDialog.cpp @@ -1,4 +1,3 @@ - /* Copyright (c) 2003-2007 Clarence Dang All rights reserved. diff --git a/document/kpDocumentSaveOptions.cpp b/document/kpDocumentSaveOptions.cpp --- a/document/kpDocumentSaveOptions.cpp +++ b/document/kpDocumentSaveOptions.cpp @@ -79,7 +79,7 @@ kpDocumentSaveOptions::kpDocumentSaveOptions (QString mimeType, int colorDepth, bool dither, int quality) : d (new kpDocumentSaveOptionsPrivate ()) { - d->m_mimeType = mimeType; + d->m_mimeType = std::move(mimeType); d->m_colorDepth = colorDepth; d->m_dither = dither; d->m_quality = quality;