Another build fix

C++ is not <any other language where you don't need a useless constructor>
This commit is contained in:
Mike Lischke 2021-03-10 12:07:09 +01:00
parent 9d1737f33b
commit ff629d543a
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,9 @@
using namespace antlr4;
ANTLRFileStream::ANTLRFileStream(): ANTLRInputStream() {
}
void ANTLRFileStream::loadFromFile(const std::string &fileName) {
_fileName = fileName;
if (_fileName.empty()) {

View File

@ -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;