From f301303e5bc428c709aa5b4f25010d96c79fb6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Fri, 12 May 2017 01:30:25 +0200 Subject: [PATCH] rename torrents array --- toREST/tests/include/SessionContext.hpp | 2 +- toREST/tests/stubs/SessionContext.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toREST/tests/include/SessionContext.hpp b/toREST/tests/include/SessionContext.hpp index 7c99580..5335635 100644 --- a/toREST/tests/include/SessionContext.hpp +++ b/toREST/tests/include/SessionContext.hpp @@ -28,7 +28,7 @@ class TestSession { public: bool valid = false; bool paused = false; - std::vector torrents; + std::vector torrents_; TestSessionSettings settings_; bool is_valid(); TestSessionSettings get_settings(); diff --git a/toREST/tests/stubs/SessionContext.cpp b/toREST/tests/stubs/SessionContext.cpp index 6353e93..dae902f 100644 --- a/toREST/tests/stubs/SessionContext.cpp +++ b/toREST/tests/stubs/SessionContext.cpp @@ -61,13 +61,13 @@ bool TestSession::is_dht_running() const { return settings_.enable_dht_; } std::vector &TestSession::get_torrents() { - return torrents; + return torrents_; } void TestSession::apply_settings(TestSessionSettings settings) { settings_ = settings; }; void TestSession::async_add_torrent(const libtorrent::add_torrent_params &settings) { - torrents.emplace_back(settings); + torrents_.emplace_back(settings); };