[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-08-24 21:04:12
Message-ID: 20100824210412.95C6AAC857 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1167535 by teran:
replaced UNUSED with the Qt macro Q_UNUSED serves same purpose but no need to \
redefine what's in the library
M +10 -10 kcalc_core.cpp
M +0 -4 kcalc_core.h
--- trunk/KDE/kdeutils/kcalc/kcalc_core.cpp #1167534:1167535
@@ -81,7 +81,7 @@
static void fpe_handler(int fpe_parm)
{
- UNUSED(fpe_parm);
+ Q_UNUSED(fpe_parm);
// display_error = true;
//tmp_number = 0L;
}
@@ -790,13 +790,13 @@
void CalcEngine::StatClearAll(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
stats.clearAll();
}
void CalcEngine::StatCount(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = KNumber(stats.count());
}
@@ -808,14 +808,14 @@
void CalcEngine::StatDataDel(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
stats.clearLast();
_last_number = KNumber::Zero;
}
void CalcEngine::StatMean(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = stats.mean();
_error = stats.error();
@@ -823,7 +823,7 @@
void CalcEngine::StatMedian(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = stats.median();
_error = stats.error();
@@ -831,7 +831,7 @@
void CalcEngine::StatStdDeviation(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = stats.std();
_error = stats.error();
@@ -839,7 +839,7 @@
void CalcEngine::StatStdSample(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = stats.sample_std();
_error = stats.error();
@@ -847,13 +847,13 @@
void CalcEngine::StatSum(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = stats.sum();
}
void CalcEngine::StatSumSquares(KNumber input)
{
- UNUSED(input);
+ Q_UNUSED(input);
_last_number = stats.sum_of_squares();
_error = stats.error();
--- trunk/KDE/kdeutils/kcalc/kcalc_core.h #1167534:1167535
@@ -36,10 +36,6 @@
typedef KNumber(*Arith)(const KNumber &, const KNumber &);
typedef KNumber(*Prcnt)(const KNumber &, const KNumber &);
-#define UNUSED(x) ((void)(x))
-
-
-
struct operator_data {
int precedence; // priority of operators in " enum Operation"
Arith arith_ptr;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic