Ticket #11966: patch-various_c++_v_stdc++.diff
File patch-various_c++_v_stdc++.diff, 1.4 KB (added by , 10 years ago) |
---|
-
mythtv/libs/libmythui/mythgesture.cpp
old new 29 29 #include "mythgesture.h" 30 30 31 31 #include <cmath> 32 #include <stdlib.h> /* abs */ 33 using namespace std; 32 34 #include <algorithm> 33 35 34 36 #include <QMutex> -
mythtv/libs/libmythui/mythpainter.cpp
old new 1 1 #include <stdint.h> 2 2 #include <algorithm> 3 #include <cmath> // std::abs 4 using namespace std; 3 5 4 6 // QT headers 5 7 #include <QRect> … … 212 214 213 215 QFontMetrics fm(font.face()); 214 216 int totalHeight = fm.height() + outlineSize + 215 std::max(outlineSize, std::abs(shadowOffset.y()));217 std::max(outlineSize, abs((shadowOffset.y()))); 216 218 217 219 // initialPaddingX is the number of pixels from the left of the 218 220 // input QRect to the left of the actual text. It is always 0 -
mythtv/libs/libmythui/mythuisimpletext.cpp
old new 17 17 18 18 #include "compat.h" 19 19 20 #include <cmath> // std::abs 21 using namespace std; 22 20 23 MythUISimpleText::MythUISimpleText(MythUIType *parent, const QString &name) 21 24 : MythUIType(parent, name), 22 25 m_Justification(Qt::AlignLeft | Qt::AlignTop)