From 561eac816b37abb03ca1da5e80c1c5c2e5e4fa51 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 29f55bc8..f4685d8a 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