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

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to