Skip to content
Commit 79b80f67 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Explicitely define RawDecodingSettings copy constructor

and default the assignment operator.

Fixes gcc warning

libkdcraw/src/kdcraw.cpp: In static member function ‘static bool KDcrawIface::KDcraw::loadFullImage(QImage&, const QString&, const KDcrawIface::RawDecodingSettings&)’:
libkdcraw/src/kdcraw.cpp:242:31: warning: implicitly-declared ‘KDcrawIface::RawDecodingSettings::RawDecodingSettings(const KDcrawIface::RawDecodingSettings&)’ is deprecated [-Wdeprecated-copy]
  242 |     RawDecodingSettings prm = settings;
      |                               ^~~~~~~~
In file included from libkdcraw/src/kdcraw.h:27,
                 from libkdcraw/src/kdcraw.cpp:9:
libkdcraw/src/rawdecodingsettings.h:151:26: note: because ‘KDcrawIface::RawDecodingSettings’ has user-provided ‘KDcrawIface::RawDecodingSettings& KDcrawIface::RawDecodingSettings::operator=(const KDcrawIface::RawDecodingSettings&)’
  151 |     RawDecodingSettings& operator=(const RawDecodingSettings& prm);
      |                          ^~~~~~~~
parent 0843c601
Pipeline #323810 passed with stage
in 1 minute and 58 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment