From 5410d3630672d5e7adf93253240168eebb692e75 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Sep 2018 21:22:49 +0200 Subject: Remove using namespace declarations --- test/time_test.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'test/time_test.cpp') diff --git a/test/time_test.cpp b/test/time_test.cpp index c6f3d77..61b9b9a 100644 --- a/test/time_test.cpp +++ b/test/time_test.cpp @@ -26,21 +26,24 @@ using namespace Raul; int main() { - TimeUnit unit(TimeUnit::BEATS, 19200); - TimeSlice ts(48000, 19200, 120.0); + Raul::TimeUnit unit(Raul::TimeUnit::BEATS, 19200); + Raul::TimeSlice ts(48000, 19200, 120.0); double in_double = 2.5; - TimeStamp t(unit, static_cast(in_double), - static_cast((in_double - static_cast(in_double)) * unit.ppt())); + Raul::TimeStamp t(unit, + static_cast(in_double), + static_cast( + (in_double - static_cast(in_double)) * + unit.ppt())); - cout << "\tSeconds: "; - cout << ts.beats_to_seconds(t); - cout << endl; + std::cout << "\tSeconds: "; + std::cout << ts.beats_to_seconds(t); + std::cout << std::endl; - cout << "\tTicks: "; - cout << ts.beats_to_ticks(t); - cout << endl; + std::cout << "\tTicks: "; + std::cout << ts.beats_to_ticks(t); + std::cout << std::endl; return 0; } -- cgit v1.2.1