Renamed _offset

This commit is contained in:
Daniel Marjamäki 2018-06-17 13:44:56 +02:00
parent 743dcff036
commit fea58e5e54
1 changed files with 4 additions and 4 deletions

View File

@ -461,7 +461,7 @@ private:
}; };
class CodeBlock { class CodeBlock {
public: public:
CodeBlock() : _offset(0) {} CodeBlock() : mOffset(0) {}
void setStart(const char* s) { void setStart(const char* s) {
mStart = s; mStart = s;
@ -470,7 +470,7 @@ private:
mEnd = e; mEnd = e;
} }
void setOffset(const int o) { void setOffset(const int o) {
_offset = o; mOffset = o;
} }
void addBlock(const char* blockName) { void addBlock(const char* blockName) {
_blocks.insert(blockName); _blocks.insert(blockName);
@ -482,7 +482,7 @@ private:
return mEnd; return mEnd;
} }
int offset() const { int offset() const {
return _offset; return mOffset;
} }
bool isBlock(const std::string& blockName) const { bool isBlock(const std::string& blockName) const {
return _blocks.find(blockName) != _blocks.end(); return _blocks.find(blockName) != _blocks.end();
@ -491,7 +491,7 @@ private:
private: private:
std::string mStart; std::string mStart;
std::string mEnd; std::string mEnd;
int _offset; int mOffset;
std::set<std::string> _blocks; std::set<std::string> _blocks;
}; };
int allocid; int allocid;