]> git.pld-linux.org Git - packages/kde4-kate.git/blame - cxx.patch
- fix c++ type errors
[packages/kde4-kate.git] / cxx.patch
CommitLineData
0ef29e8a
JR
1--- kate-4.14.3/part/view/kateviewhelpers.cpp~ 2014-10-26 21:17:55.000000000 +0100
2+++ kate-4.14.3/part/view/kateviewhelpers.cpp 2019-10-05 19:21:16.866710926 +0200
3@@ -77,7 +77,8 @@
4 #include <QtGui/QWhatsThis>
5 #include <QtGui/QLinearGradient>
6
7-#include <math.h>
8+#include <cmath>
9+#include <cstdint>
10
11 //BEGIN KateScrollBar
12 static const int s_lineWidth = 100;
13--- kate-4.14.3/part/view/kateviewhelpers.cpp~ 2019-10-05 19:22:43.000000000 +0200
14+++ kate-4.14.3/part/view/kateviewhelpers.cpp 2019-10-05 19:24:56.926703402 +0200
15@@ -1704,7 +1704,7 @@
16 if (realLine > -1) {
17 if (m_viewInternal->cache()->viewLine(z).startCol() == 0) {
18 if (m_viRelLineNumbersOn && m_view->viInputMode()) {
19- int diff = abs(realLine - currentLine);
20+ int diff = abs(realLine - (int)currentLine);
21 if (diff > 0) {
22 p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h,
23 Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );
This page took 0.093721 seconds and 4 git commands to generate.