X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fcsourcefile.h;h=c57654a4cd6334cd98baba915baca1c1c75ca521;hb=f0c0d720edc01f5faa72bb4ff4bf655445842678;hp=55809b094c71e3babf04a77f308d6346aeb01d8a;hpb=bde362811368647047f3ca13bdec596f092ecffe;p=builder.git diff --git a/source/csourcefile.h b/source/csourcefile.h index 55809b0..c57654a 100644 --- a/source/csourcefile.h +++ b/source/csourcefile.h @@ -9,18 +9,15 @@ Represents a C or C++ source file. */ class CSourceFile: public SourceFile { -public: - typedef std::list IncludeList; - protected: - IncludeList includes; + std::vector includes; public: - CSourceFile(Builder &, const Msp::FS::Path &); + CSourceFile(Builder &b, const Msp::FS::Path &p): SourceFile(b, p) { } CSourceFile(Builder &, const Component &, const Msp::FS::Path &); const char *get_type() const override { return "CSourceFile"; } - const IncludeList &get_includes() const { return includes; } + const std::vector &get_includes() const { return includes; } protected: virtual void parse_includes(Msp::IO::Base &); void find_dependencies() override;