Added debug macros and cleaned up debug logging. Added locking macros used when compiling for multithreading. Fixed value conversions to numbers. Fixed compile warnings.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@885348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9941f3ba6
commit
cd7dae28b0
20 changed files with 417 additions and 138 deletions
|
|
@ -24,13 +24,14 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <string>
|
||||
#include "debug.hpp"
|
||||
#include "service.hpp"
|
||||
#include "item.hpp"
|
||||
|
||||
namespace store
|
||||
{
|
||||
|
||||
const double currencyConverter_convert(const std::string& fromCurrencyCode, const std::string& toCurrencyCode, const double amount) {
|
||||
const double currencyConverter_convert(unused const std::string& fromCurrencyCode, const std::string& toCurrencyCode, const double amount) {
|
||||
if(toCurrencyCode == "USD")
|
||||
return amount;
|
||||
if(toCurrencyCode == "EUR")
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <string>
|
||||
#include "debug.hpp"
|
||||
|
||||
namespace store
|
||||
{
|
||||
|
|
@ -38,7 +39,7 @@ public:
|
|||
class CurrencyConverterImpl : public CurrencyConverter {
|
||||
public:
|
||||
|
||||
virtual const double convert(const std::string& fromCurrencyCode, const std::string& toCurrencyCode, const double amount) const {
|
||||
virtual const double convert(unused const std::string& fromCurrencyCode, const std::string& toCurrencyCode, const double amount) const {
|
||||
if(toCurrencyCode == "USD")
|
||||
return amount;
|
||||
if(toCurrencyCode == "EUR")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue