]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/sourcemap.h
Use default member initializers for simple types
[libs/gl.git] / source / glsl / sourcemap.h
index 6df6418aec1c1489f1f5da4ad29e3b109b5beaf5..5622d289d71611c7393b47a6cf5b722f433f5c06 100644 (file)
@@ -11,14 +11,13 @@ namespace SL {
 class SourceMap
 {
 private:
-       unsigned base_index;
+       unsigned base_index = 0;
        std::vector<std::string> 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;
 };