]> www.ginac.de Git - ginac.git/blobdiff - ginac/excompiler.cpp
Use C++11 range-based foor loops and auto, where possible.
[ginac.git] / ginac / excompiler.cpp
index 36cb8ffcf01fe203ef5ddcad686a4c521b81cb72..28c24a4ac9a6986631224508706f3d02a10e682f 100644 (file)
@@ -76,7 +76,7 @@ public:
         */
        ~excompiler()
        {
-               for (std::vector<filedesc>::const_iterator it = filelist.begin(); it != filelist.end(); ++it) {
+               for (auto it = filelist.begin(); it != filelist.end(); ++it) {
                        clean_up(it);
                }
        }
@@ -169,7 +169,7 @@ public:
         */
        void unlink(const std::string filename)
        {
-               for (std::vector<filedesc>::iterator it = filelist.begin(); it != filelist.end();) {
+               for (auto it = filelist.begin(); it != filelist.end();) {
                        if (it->name == filename) {
                                clean_up(it);
                                it = filelist.erase(it);