Skip to content

Commit

Permalink
Another build fix
Browse files Browse the repository at this point in the history
C++ is not <any other language where you don't need a useless constructor>
  • Loading branch information
mike-lischke committed Mar 10, 2021
1 parent 9d1737f commit ff629d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/Cpp/runtime/src/ANTLRFileStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

using namespace antlr4;

ANTLRFileStream::ANTLRFileStream(): ANTLRInputStream() {
}

void ANTLRFileStream::loadFromFile(const std::string &fileName) {
_fileName = fileName;
if (_fileName.empty()) {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ANTLRFileStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace antlr4 {
// TODO: this class needs testing.
class ANTLR4CPP_PUBLIC ANTLRFileStream : public ANTLRInputStream {
public:
ANTLRFileStream();
ANTLRFileStream(const std::string &) = delete;
ANTLRFileStream(const char *data, size_t length) = delete;
ANTLRFileStream(std::istream &stream) = delete;
Expand Down

0 comments on commit ff629d5

Please sign in to comment.