From: Mikko Rasa Date: Fri, 24 May 2013 14:47:03 +0000 (+0300) Subject: Use correct keyword in forward declaration X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=74f25b32f313987aad22af901b75a8e59a90734a;p=libs%2Fdatafile.git Use correct keyword in forward declaration clang isn't happy if a struct is forward declared as a class, even though they are semantically equivalent in that context. --- diff --git a/source/parser.h b/source/parser.h index aeab71d..6ad28b5 100644 --- a/source/parser.h +++ b/source/parser.h @@ -9,7 +9,6 @@ namespace DataFile { class ParserMode; class Statement; -struct Token; /** Frontend for loading datafiles. Handles switching between text and binary diff --git a/source/textparser.h b/source/textparser.h index 2ac4e88..8235dc6 100644 --- a/source/textparser.h +++ b/source/textparser.h @@ -6,7 +6,7 @@ namespace Msp { namespace DataFile { -class Token; +struct Token; class TextParser: public ParserMode {