diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-11-19 17:44:13 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-11-19 18:19:45 -0800 |
commit | 711680d652a8db17c1b91428b6d6835f30dfb4fd (patch) | |
tree | 0d64c8314f8531e2a09c7dc5e242333ddec6582b /src/generic | |
parent | 078028058d2e9fbcde2147eb4154830e08652066 (diff) | |
download | tmwa-711680d652a8db17c1b91428b6d6835f30dfb4fd.tar.gz tmwa-711680d652a8db17c1b91428b6d6835f30dfb4fd.tar.bz2 tmwa-711680d652a8db17c1b91428b6d6835f30dfb4fd.tar.xz tmwa-711680d652a8db17c1b91428b6d6835f30dfb4fd.zip |
Magically allow "break" within WITH_VAR
Diffstat (limited to 'src/generic')
-rw-r--r-- | src/generic/db.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generic/db.hpp b/src/generic/db.hpp index 707d8ae..b0dcf0c 100644 --- a/src/generic/db.hpp +++ b/src/generic/db.hpp @@ -115,7 +115,7 @@ public: V get(const K& k) { Option<Borrowed<V>> vp = impl.search(k); - if OPTION_IS_SOME(v, vp) + if OPTION_IS_SOME_NOLOOP(v, vp) { return *v; } @@ -162,7 +162,7 @@ public: Option<Borrowed<V>> get(const K& k) { Option<Borrowed<U>> up = impl.search(k); - if OPTION_IS_SOME(u, up) + if OPTION_IS_SOME_NOLOOP(u, up) { return Some(borrow(*u->get())); } |