[Development] Deprecated warnings in public API

Thiago Macieira thiago.macieira at intel.com
Sat Mar 22 19:56:20 CET 2014


Em sáb 22 mar 2014, às 14:23:45, Kurt Pattyn escreveu:
> When compiling applications on OSX 10.9 with clang,
> I encounter quite a lot of deprecated warnings like this:
> 
> qbytearray.h:496:22: warning: definition of implicit
>       copy constructor for 'QByteRef' is deprecated because it has a
> user-declared copy assignment operator [-Wdeprecated] inline QByteRef
> &operator=(const QByteRef &c)
> 
> Should this be fixed, or isn’t it worth the effort?

It should be fixed by either adding the copy constructor or removing the 
unnecessary copy assignment operator. 


Unfortunately, the fix needs to be #ifdef'ed out for MSVC since the QByteRef 
class was mistakenly exported from QtCore, even though it has no non-inline 
methods.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list