X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fsourcemap.h;h=5622d289d71611c7393b47a6cf5b722f433f5c06;hp=6df6418aec1c1489f1f5da4ad29e3b109b5beaf5;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=9d798ac368bfd236a7632a3a15e51bd1112ea63d diff --git a/source/glsl/sourcemap.h b/source/glsl/sourcemap.h index 6df6418a..5622d289 100644 --- a/source/glsl/sourcemap.h +++ b/source/glsl/sourcemap.h @@ -11,14 +11,13 @@ namespace SL { class SourceMap { private: - unsigned base_index; + unsigned base_index = 0; std::vector source_names; public: - SourceMap(); - void set_name(unsigned, const std::string &); unsigned get_count() const { return base_index+source_names.size(); } + const std::string &get_name(unsigned) const; void merge_from(const SourceMap &); std::string translate_errors(const std::string &) const; };