From d4f4b73d56d4bf7bc001c723cf76d0651b423fb9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 8 Dec 2019 23:14:48 +0100 Subject: [PATCH] Move socket buffer size from header to source file. --- common/TracySocket.cpp | 3 +++ common/TracySocket.hpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index 08d243be..30a9ca70 100644 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -62,6 +62,9 @@ void InitWinSock() } #endif + +enum { BufSize = 128 * 1024 }; + Socket::Socket() : m_buf( (char*)tracy_malloc( BufSize ) ) , m_bufPtr( nullptr ) diff --git a/common/TracySocket.hpp b/common/TracySocket.hpp index 789be00b..31c1598d 100644 --- a/common/TracySocket.hpp +++ b/common/TracySocket.hpp @@ -14,8 +14,6 @@ void InitWinSock(); class Socket { - enum { BufSize = 128 * 1024 }; - public: Socket(); Socket( int sock );