Abdelrazak Younes <[EMAIL PROTECTED]> writes:

| > NB: Qt4 files have been updated, but not tested. So changes might be
| > needed.
| 
| This patch goes in to fix compilation of Qt4.
| 
| Abdel
| Index: QWorkArea.C
| ===================================================================
| --- QWorkArea.C       (revision 13671)
| +++ QWorkArea.C       (working copy)
| @@ -230,7 +230,10 @@
|  
|  void QWorkArea::haveSelection(bool own) const
|  {
| -     wa_ptr = this;
| +     // static_cast is not possible here
| +     // wa_ptr = static_cast<QWorkArea*>(this);
| +     /// \todo ask X11 and MAC devels why this wa_ptr is useful.
| +     wa_ptr = (QWorkArea*)(this);

No C-syle casts please.

Use
         wa_ptr = const_cast<QWorkArea*>(this);

instead.

-- 
        Lgb

Reply via email to