From a6cd84920c3255fd2ba2370e20023e8f5264daec Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Thu, 2 Aug 2012 22:58:13 -0400 Subject: user ternary operator for verbose logging, a bit cleaner --- fly-tools/FlyTrackingMain.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'fly-tools/FlyTrackingMain.cpp') diff --git a/fly-tools/FlyTrackingMain.cpp b/fly-tools/FlyTrackingMain.cpp index 446cc96..76dfa5c 100644 --- a/fly-tools/FlyTrackingMain.cpp +++ b/fly-tools/FlyTrackingMain.cpp @@ -1918,12 +1918,7 @@ int main(int argc, char **argv) break; } - - if(verbose) { - output = &cout; - } else { - output = &nullLog; - } + (verbose) ? output = &cout : output = &nullLog; *output << "verbose logging out" << endl; -- cgit v1.2.3