summaryrefslogtreecommitdiff
path: root/src/mongo/platform/shared_library.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/platform/shared_library.cpp')
-rw-r--r--src/mongo/platform/shared_library.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mongo/platform/shared_library.cpp b/src/mongo/platform/shared_library.cpp
index e8822ac3dd1..85d7a3aa0bf 100644
--- a/src/mongo/platform/shared_library.cpp
+++ b/src/mongo/platform/shared_library.cpp
@@ -32,20 +32,18 @@
namespace mongo {
- typedef StatusWith<void (*)()> StatusWithFunc;
+typedef StatusWith<void (*)()> StatusWithFunc;
- SharedLibrary::SharedLibrary(void* handle)
- : _handle(handle)
- {}
+SharedLibrary::SharedLibrary(void* handle) : _handle(handle) {}
- StatusWithFunc SharedLibrary::getFunction(StringData name) {
- StatusWith<void*> s = getSymbol(name);
+StatusWithFunc SharedLibrary::getFunction(StringData name) {
+ StatusWith<void*> s = getSymbol(name);
- if (!s.isOK()) {
- return StatusWithFunc(s.getStatus());
- }
-
- return StatusWithFunc(reinterpret_cast<void (*)()>(s.getValue()));
+ if (!s.isOK()) {
+ return StatusWithFunc(s.getStatus());
}
-} // namespace mongo
+ return StatusWithFunc(reinterpret_cast<void (*)()>(s.getValue()));
+}
+
+} // namespace mongo