aboutsummaryrefslogtreecommitdiffstats
path: root/msvc
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-01-15 16:56:30 -0800
committerJason Evans <jasone@canonware.com>2017-01-20 21:43:07 -0800
commitc4c2592c834d8a37beb0a0d53842095160cbf9ee (patch)
treee4717ea6a2f13926dadd74ea1fc83f9742f77968 /msvc
parent5154ff32ee8c37bacb6afd8a07b923eb33228357 (diff)
downloadplatform_external_jemalloc_new-c4c2592c834d8a37beb0a0d53842095160cbf9ee.tar.gz
platform_external_jemalloc_new-c4c2592c834d8a37beb0a0d53842095160cbf9ee.tar.bz2
platform_external_jemalloc_new-c4c2592c834d8a37beb0a0d53842095160cbf9ee.zip
Update brace style.
Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
Diffstat (limited to 'msvc')
-rw-r--r--msvc/projects/vc2015/test_threads/test_threads.cpp3
-rw-r--r--msvc/projects/vc2015/test_threads/test_threads_main.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/msvc/projects/vc2015/test_threads/test_threads.cpp b/msvc/projects/vc2015/test_threads/test_threads.cpp
index a3d1a792..92e31624 100644
--- a/msvc/projects/vc2015/test_threads/test_threads.cpp
+++ b/msvc/projects/vc2015/test_threads/test_threads.cpp
@@ -16,8 +16,7 @@ using std::thread;
using std::uniform_int_distribution;
using std::minstd_rand;
-int test_threads()
-{
+int test_threads() {
je_malloc_conf = "narenas:3";
int narenas = 0;
size_t sz = sizeof(narenas);
diff --git a/msvc/projects/vc2015/test_threads/test_threads_main.cpp b/msvc/projects/vc2015/test_threads/test_threads_main.cpp
index ffd96e6a..0a022fba 100644
--- a/msvc/projects/vc2015/test_threads/test_threads_main.cpp
+++ b/msvc/projects/vc2015/test_threads/test_threads_main.cpp
@@ -5,8 +5,7 @@
using namespace std::chrono_literals;
-int main(int argc, char** argv)
-{
+int main(int argc, char** argv) {
int rc = test_threads();
return rc;
}