Ticket #41371: patch-various_c++_v_stdc++.diff

File patch-various_c++_v_stdc++.diff, 1.4 KB (added by ctreleaven (Craig Treleaven), 10 years ago)
  • mythtv/libs/libmythui/mythgesture.cpp

    old new  
    2929#include "mythgesture.h"
    3030
    3131#include <cmath>
     32#include <stdlib.h>     /* abs */
     33using namespace std;
    3234#include <algorithm>
    3335
    3436#include <QMutex>
  • mythtv/libs/libmythui/mythpainter.cpp

    old new  
    11#include <stdint.h>
    22#include <algorithm>
     3#include <cmath>        // std::abs
     4using namespace std;
    35
    46// QT headers
    57#include <QRect>
     
    212214
    213215    QFontMetrics fm(font.face());
    214216    int totalHeight = fm.height() + outlineSize +
    215         std::max(outlineSize, std::abs(shadowOffset.y()));
     217        std::max(outlineSize, abs((shadowOffset.y())));
    216218
    217219    // initialPaddingX is the number of pixels from the left of the
    218220    // input QRect to the left of the actual text.  It is always 0
  • mythtv/libs/libmythui/mythuisimpletext.cpp

    old new  
    1717
    1818#include "compat.h"
    1919
     20#include <cmath>        // std::abs
     21using namespace std;
     22
    2023MythUISimpleText::MythUISimpleText(MythUIType *parent, const QString &name)
    2124    : MythUIType(parent, name),
    2225      m_Justification(Qt::AlignLeft | Qt::AlignTop)