[PhoneOrder-commits] SF.net SVN: phoneorder:[55] trunk/src
Status: Alpha
Brought to you by:
hurikhan
|
From: <hur...@us...> - 2011-05-02 21:30:04
|
Revision: 55
http://phoneorder.svn.sourceforge.net/phoneorder/?rev=55&view=rev
Author: hurikhan
Date: 2011-05-02 21:29:58 +0000 (Mon, 02 May 2011)
Log Message:
-----------
Fix build problems with Ubuntu
Fixes the problem of missing abs() and unsupported constructor casting
when building in Ubuntu.
Modified Paths:
--------------
trunk/src/orderwidget.ui.h
trunk/src/po_customer.cpp
Modified: trunk/src/orderwidget.ui.h
===================================================================
--- trunk/src/orderwidget.ui.h 2010-06-13 19:49:51 UTC (rev 54)
+++ trunk/src/orderwidget.ui.h 2011-05-02 21:29:58 UTC (rev 55)
@@ -418,7 +418,7 @@
if (c < -1) c = -1;
i->setText (1, (c < 0) ? "-" : "+");
i->setText (3, QString ("%L1") .arg (sign * currentCount * c * query.value (2).toDouble (), 0, 'f', 2));
- c = abs (c);
+ if (c < 0) c = -c;
if (c == 1)
i->setText (2, query.value (1).toString ());
else
Modified: trunk/src/po_customer.cpp
===================================================================
--- trunk/src/po_customer.cpp 2010-06-13 19:49:51 UTC (rev 54)
+++ trunk/src/po_customer.cpp 2011-05-02 21:29:58 UTC (rev 55)
@@ -27,13 +27,13 @@
PO_Customer::PO_Customer (const QString custNum)
{
- PO_Customer::PO_Customer ();
+ PO_Customer ();
lookupByNum (custNum);
}
PO_Customer::PO_Customer (const qlonglong sqlId)
{
- PO_Customer::PO_Customer ();
+ PO_Customer ();
lookupById (sqlId);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|