aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/util
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-09-04 23:01:03 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-20 23:08:56 +0200
commit9f56678fceef0a53411bdfcac82ab65f7b896838 (patch)
tree23b1e40a31e0177beb6ab65d06e4458d6feb04af /src/leveldb/util
parent9d503a72855167fcfa66362657d3f93f7b823774 (diff)
Backport Win32 LevelDB env from C++0x to C++
Since the gitian mingw compiler doesn't support C++0x yet.
Diffstat (limited to 'src/leveldb/util')
-rw-r--r--src/leveldb/util/env_boost.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leveldb/util/env_boost.cc b/src/leveldb/util/env_boost.cc
index 0190f9fb77..055c657438 100644
--- a/src/leveldb/util/env_boost.cc
+++ b/src/leveldb/util/env_boost.cc
@@ -401,7 +401,7 @@ class PosixEnv : public Env {
boost::interprocess::file_lock fl(fname.c_str());
BoostFileLock * my_lock = new BoostFileLock();
- my_lock->fl_ = std::move(fl);
+ fl.swap(my_lock->fl_);
if (!my_lock->fl_.try_lock()) {
return Status::IOError("database already in use: could not acquire exclusive lock");
}