Small C++11 tweaks.
[libsub.git] / src / effect.cc
index 57eb8633ee4516e278798f74ae74261f6f1e5cfe..dfdb40b18403895e9646e08744a004b8eda1d844 100644 (file)
@@ -29,7 +29,7 @@ optional<Effect>
 sub::string_to_effect (string s)
 {
        if (s == "none") {
-               return optional<Effect> ();
+               return {};
        } else if (s == "border") {
                return BORDER;
        } else if (s == "shadow") {