From b178ba16af9f5336e8b9bad9948584ceef319db3 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Thu, 25 Apr 2019 16:21:36 -0700 Subject: [PATCH] fix indentation of greatestCommonDivisor --- ixwebsocket/IXWebSocketTransport.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index a8853a90..bb3c083e 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -51,15 +51,19 @@ #include -int greatestCommonDivisor (int a, int b) { - while (b != 0) - { - int t = b; - b = a % b; - a = t; - } +namespace +{ + int greatestCommonDivisor(int a, int b) + { + while (b != 0) + { + int t = b; + b = a % b; + a = t; + } - return a; + return a; + } } namespace ix