buffer.h: remove protected

This commit is contained in:
Heinz Mauelshagen 2013-01-23 13:51:13 +01:00
parent 635eb6949a
commit 78563e1709

View File

@ -80,10 +80,9 @@ namespace persistent_data {
free(p); free(p);
} }
protected: private:
unsigned char data_[Size]; unsigned char data_[Size];
private:
static void check_index(unsigned index) { static void check_index(unsigned index) {
if (index >= Size) if (index >= Size)
throw std::runtime_error("buffer index out of bounds"); throw std::runtime_error("buffer index out of bounds");