X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FtestServer.cc;h=9db2b09e27b42c36e964898e5c153ff5eab82c83;hb=6aae6e526573187ece558842e928578e5aa4cc4c;hp=393ba97ee8de1646ee68f504ef7fe21f37380462;hpb=7d62c38fca85add3e5a04f0518d6f1417fa6ca69;p=senf.git diff --git a/senf/Utils/Console/testServer.cc b/senf/Utils/Console/testServer.cc index 393ba97..9db2b09 100644 --- a/senf/Utils/Console/testServer.cc +++ b/senf/Utils/Console/testServer.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -46,16 +46,16 @@ struct TestObject { senf::console::ScopedDirectory dir; - TestObject() - : dir(this) + TestObject() + : dir(this) { - dir.add("vat", fty::Command(this, &TestObject::vat) + dir.add("vat", fty::Command(&TestObject::vat, this) .arg("vat", "VAT in %", kw::default_value = 19) .arg("amount", "Amount including VAT") .doc("Returns the amount of {vat}-% VAT included in {amount}") ); } - double vat (int vat, double amount) + double vat (int vat, double amount) { return amount * vat/(100.0+vat); }