projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logging: rename the `DEBUG` log level to `DBG`
[folly.git]
/
folly
/
Lazy.h
diff --git
a/folly/Lazy.h
b/folly/Lazy.h
index 963dd479a8889c7e01028cc18ea09c7a4e133a23..ff115f3f3d3af233e35bada0678546385e399f87 100644
(file)
--- a/
folly/Lazy.h
+++ b/
folly/Lazy.h
@@
-107,16
+107,18
@@
struct Lazy {
}
result_type& operator()() {
}
result_type& operator()() {
- if (!value_) value_ = func_();
+ if (!value_) {
+ value_ = func_();
+ }
return *value_;
}
return *value_;
}
-private:
+
private:
Optional<result_type> value_;
Func func_;
};
Optional<result_type> value_;
Func func_;
};
-}
+}
// namespace detail
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
@@
-130,4
+132,4
@@
lazy(Func&& fun) {
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
-}
+}
// namespace folly