Changeset View
Changeset View
Standalone View
Standalone View
document/kpDocumentSaveOptions.cpp
1 | #include <utility> | ||||
---|---|---|---|---|---|
2 | | ||||
1 | 3 | | |||
2 | /* | 4 | /* | ||
3 | Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> | 5 | Copyright (c) 2003-2007 Clarence Dang <dang@kde.org> | ||
4 | All rights reserved. | 6 | All rights reserved. | ||
5 | 7 | | |||
6 | Redistribution and use in source and binary forms, with or without | 8 | Redistribution and use in source and binary forms, with or without | ||
7 | modification, are permitted provided that the following conditions | 9 | modification, are permitted provided that the following conditions | ||
8 | are met: | 10 | are met: | ||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 72 | { | |||
74 | d->m_quality = rhs.quality (); | 76 | d->m_quality = rhs.quality (); | ||
75 | } | 77 | } | ||
76 | 78 | | |||
77 | //--------------------------------------------------------------------- | 79 | //--------------------------------------------------------------------- | ||
78 | 80 | | |||
79 | kpDocumentSaveOptions::kpDocumentSaveOptions (QString mimeType, int colorDepth, bool dither, int quality) | 81 | kpDocumentSaveOptions::kpDocumentSaveOptions (QString mimeType, int colorDepth, bool dither, int quality) | ||
80 | : d (new kpDocumentSaveOptionsPrivate ()) | 82 | : d (new kpDocumentSaveOptionsPrivate ()) | ||
81 | { | 83 | { | ||
82 | d->m_mimeType = mimeType; | 84 | d->m_mimeType = std::move(mimeType); | ||
83 | d->m_colorDepth = colorDepth; | 85 | d->m_colorDepth = colorDepth; | ||
84 | d->m_dither = dither; | 86 | d->m_dither = dither; | ||
85 | d->m_quality = quality; | 87 | d->m_quality = quality; | ||
86 | } | 88 | } | ||
87 | 89 | | |||
88 | //--------------------------------------------------------------------- | 90 | //--------------------------------------------------------------------- | ||
89 | 91 | | |||
90 | kpDocumentSaveOptions::~kpDocumentSaveOptions () | 92 | kpDocumentSaveOptions::~kpDocumentSaveOptions () | ||
▲ Show 20 Lines • Show All 532 Lines • Show Last 20 Lines |