summaryrefslogtreecommitdiff
path: root/src/effect.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-22 23:29:58 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-22 23:29:58 +0100
commite3d8790ae7c9f8dbbcc9cd8a1fa5c0fede26b872 (patch)
treeeb06f636fcea85567db3ba3a5d06879b44034959 /src/effect.cc
parent0901a200ef4fedf0e78a2fb38bcf70944bfb1f8e (diff)
Small C++11 tweaks.
Diffstat (limited to 'src/effect.cc')
-rw-r--r--src/effect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effect.cc b/src/effect.cc
index 57eb863..dfdb40b 100644
--- a/src/effect.cc
+++ b/src/effect.cc
@@ -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") {