[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeutils/kcalc
From: Evan Teran <eteran () alum ! rit ! edu>
Date: 2010-10-23 5:06:20
Message-ID: 20101023050620.25FBAAC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1188797 by teran:
after asking on kdeutil mailing list, I've switched all legacy C header usage
to the <cxxx> style from the <xxx.h> style.
Also removed the "_ISOC99_SOURCE" from the cmake file, it isn't neccessary. This \
macro used to be used to selectively use the c++ style legacy c headers, but doesn't \
serve any known function anymore
M +0 -2 CMakeLists.txt
M +4 -4 kcalc.cpp
U kcalc.h
M +6 -7 kcalc_core.cpp
M +3 -3 kcalcdisplay.cpp
M +3 -3 kcalctype.h
M +4 -4 knumber/knumber_priv.cpp
M +3 -7 knumber/tests/knumbertest.cpp
M +1 -1 stats.cpp
--- trunk/KDE/kdeutils/kcalc/CMakeLists.txt #1188796:1188797
@@ -10,8 +10,6 @@
configure_file(config-kcalc.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcalc.h )
-add_definitions( -D_ISOC99_SOURCE ) # added manually
-
include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/knumber \
${GMP_INCLUDE_DIR} )
########### next target ###############
--- trunk/KDE/kdeutils/kcalc/kcalc.cpp #1188796:1188797
@@ -23,10 +23,10 @@
#include "kcalc.h"
-#include <ctype.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include <cctype>
+#include <clocale>
+#include <cstdio>
+#include <cstdlib>
#include <unistd.h>
#include <QApplication>
--- trunk/KDE/kdeutils/kcalc/kcalc_core.cpp #1188796:1188797
@@ -36,14 +36,13 @@
#include <config-kcalc.h>
-#include <limits.h>
-#include <stdio.h>
-#include <assert.h>
-#include <signal.h>
-#include <errno.h>
-#include <string.h>
+#include <climits>
+#include <cstdio>
+#include <csignal>
+#include <cerrno>
+#include <cstring>
+#include <cstdlib>
-#include <stdlib.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>
--- trunk/KDE/kdeutils/kcalc/kcalcdisplay.cpp #1188796:1188797
@@ -26,9 +26,9 @@
#include "kcalcdisplay.h"
-#include <errno.h>
-#include <stdlib.h>
-#include <ctype.h>
+#include <cerrno>
+#include <cstdlib>
+#include <cctype>
#include <QClipboard>
#include <QMouseEvent>
--- trunk/KDE/kdeutils/kcalc/kcalctype.h #1188796:1188797
@@ -28,8 +28,8 @@
#ifndef KCALC_TYPE_H
#define KCALC_TYPE_H
-#include <limits.h>
-#include <float.h>
-#include <math.h>
+#include <climits>
+#include <cfloat>
+#include <cmath>
#endif
--- trunk/KDE/kdeutils/kcalc/knumber/knumber_priv.cpp #1188796:1188797
@@ -19,12 +19,12 @@
#include "knumber_priv.h"
-#include <math.h>
+#include <cmath>
#include <config-kcalc.h>
-#include <stdlib.h>
+#include <cstdlib>
#ifdef Q_OS_LINUX
-#include <signal.h>
-#include <setjmp.h>
+#include <csignal>
+#include <csetjmp>
#endif
#include <QRegExp>
--- trunk/KDE/kdeutils/kcalc/knumber/tests/knumbertest.cpp #1188796:1188797
@@ -2,14 +2,10 @@
// Author: Klaus Niederkrueger <kniederk@math.uni-koeln.de>
//
-#include <stdlib.h>
-#include <stdio.h>
-
-#include <iostream>
-
-
#include "knumbertest.h"
-
+#include <cstdlib>
+#include <cstdio>
+#include <iostream>
#include <QString>
QString numtypeToString(KNumber::NumType arg)
--- trunk/KDE/kdeutils/kcalc/stats.cpp #1188796:1188797
@@ -26,7 +26,7 @@
#include "stats.h"
#ifdef DEBUG_STATS
-#include <stdio.h>
+#include <cstdio>
#endif
KStats::KStats() : error_flag_(false)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic