]> 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 da1f9b760032dca93ca70c07cdf1576ee9fc9938..5622d289d71611c7393b47a6cf5b722f433f5c06 100644 (file)
@@ -11,12 +11,10 @@ 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;