Skip to content

Commit 75e52c3

Browse files
committed
keep most variables private
1 parent 55cb2b0 commit 75e52c3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ set(Boost_USE_STATIC_LIBS OFF)
5252
set(Boost_USE_MULTITHREADED ON)
5353
set(Boost_USE_STATIC_RUNTIME OFF)
5454
set(Boost_PYTHON_VERSION ${Python_VERSION})
55-
find_package(Boost COMPONENTS python REQUIRED)
55+
find_package(Boost CONFIG COMPONENTS python REQUIRED)
5656

5757
# Interface library for flags and library dependencies
5858
add_library(spt3g INTERFACE)

core/include/core/G3Reader.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ class G3Reader : public G3Module {
2323
protected:
2424
virtual void StartFile(const std::string &path);
2525
virtual G3FramePtr FillFrame();
26-
bool prefix_file_;
2726
std::string cur_file_;
28-
std::deque<std::string> filename_;
2927
std::istream stream_;
28+
29+
private:
30+
bool prefix_file_;
31+
std::deque<std::string> filename_;
3032
int n_frames_to_read_;
3133
int n_frames_read_;
3234
int n_frames_cur_;

core/src/G3Reader.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
G3Reader::G3Reader(const std::string &filename, int n_frames_to_read,
66
float timeout, bool track_filename, size_t buffersize, const std::string &ext) :
7-
prefix_file_(false), stream_(nullptr), n_frames_to_read_(n_frames_to_read),
7+
stream_(nullptr), prefix_file_(false), n_frames_to_read_(n_frames_to_read),
88
n_frames_read_(0), n_frames_cur_(0), timeout_(timeout),
99
track_filename_(track_filename), buffersize_(buffersize), ext_(ext)
1010
{
@@ -13,7 +13,7 @@ G3Reader::G3Reader(const std::string &filename, int n_frames_to_read,
1313

1414
G3Reader::G3Reader(const std::vector<std::string> &filename, int n_frames_to_read,
1515
float timeout, bool track_filename, size_t buffersize, const std::string &ext) :
16-
prefix_file_(false), stream_(nullptr), n_frames_to_read_(n_frames_to_read),
16+
stream_(nullptr), prefix_file_(false), n_frames_to_read_(n_frames_to_read),
1717
n_frames_read_(0), n_frames_cur_(0), timeout_(timeout),
1818
track_filename_(track_filename), buffersize_(buffersize), ext_(ext)
1919
{

0 commit comments

Comments
 (0)