Fix Searchpath::operator+ to return by value rather than reference and not modify...
[ardour.git] / libs / pbd / pbd / search_path.h
index 86ab5cdc6409d47b749ecbc4a3c61f4db4464039..74ac764dc0b6febba25590a14947b4f6b710e933 100644 (file)
@@ -90,12 +90,12 @@ public:
        /**
         * Concatenate another Searchpath onto this.
         */
-       LIBPBD_TEMPLATE_MEMBER_API Searchpath& operator+ (const Searchpath& other);
+       LIBPBD_TEMPLATE_MEMBER_API const Searchpath operator+ (const Searchpath& other);
        
        /**
         * Add another path to the search path.
         */
-       LIBPBD_TEMPLATE_MEMBER_API Searchpath& operator+ (const std::string& directory_path);
+       LIBPBD_TEMPLATE_MEMBER_API const Searchpath operator+ (const std::string& directory_path);
 
        /**
         * Remove all the directories in path from this.