Skip to content

Commit

Permalink
CBL-4471: Xcode 14.3 unqualified calls to std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
callumbirks committed Jun 20, 2023
1 parent 209a186 commit 8e10e3d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Fleece/Core/Doc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ namespace fleece { namespace impl {
while (it->scope) it++;
auto node = sMemoryMap->extract(it);
node.value() = entry;
sMemoryMap->insert(move(node));
sMemoryMap->insert(std::move(node));
sMemoryMapTombstones--;
} else {
sMemoryMap->insert(iter, entry);
Expand Down
2 changes: 1 addition & 1 deletion Fleece/Mutable/HeapValue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace fleece { namespace impl { namespace internal {
} else if (v) {
RetainedConst<Doc> doc = Doc::containing(v);
if (_usuallyTrue(doc != nullptr))
fleece::retain(move(doc));
fleece::retain(std::move(doc));
else if (!isHardwiredValue(v))
FleeceException::_throw(InvalidData,
"Can't retain immutable Value %p that's not part of a Doc",
Expand Down
2 changes: 1 addition & 1 deletion Fleece/Support/Backtrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ namespace fleece {
void Backtrace::installTerminateHandler(function<void(const string&)> logger) {
static once_flag sOnce;
call_once(sOnce, [&] {
static auto const sLogger = move(logger);
static auto const sLogger = std::move(logger);
static terminate_handler const sOldHandler = set_terminate([] {
// ---- Code below gets called by C++ runtime on an uncaught exception ---
if (sLogger) {
Expand Down
4 changes: 2 additions & 2 deletions Fleece/Support/ConcurrentArena.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ namespace fleece {


ConcurrentArena::ConcurrentArena(ConcurrentArena &&other) {
*this = move(other);
*this = std::move(other);
}


ConcurrentArena& ConcurrentArena::operator=(ConcurrentArena &&other) {
_heap = move(other._heap);
_heap = std::move(other._heap);
_heapEnd = other._heapEnd;
_nextBlock = other._nextBlock.load();
return *this;
Expand Down
4 changes: 2 additions & 2 deletions Fleece/Support/ConcurrentMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace fleece {


ConcurrentMap::ConcurrentMap(ConcurrentMap &&map) {
*this = move(map);
*this = std::move(map);
}


Expand All @@ -112,7 +112,7 @@ namespace fleece {
_capacity = map._capacity;
_count = map._count.load();
_entries = map._entries;
_heap = move(map._heap);
_heap = std::move(map._heap);
return *this;
}

Expand Down
2 changes: 1 addition & 1 deletion Xcode/xcconfigs/FleeceTest.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//

// Workaround for Catch 2 requiring C++ features not available until macOS 10.12
MACOSX_DEPLOYMENT_TARGET = 10.12
MACOSX_DEPLOYMENT_TARGET = 10.14

CLANG_WARN__EXIT_TIME_DESTRUCTORS = NO
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) _LIBCPP_DEBUG=0
Expand Down
2 changes: 1 addition & 1 deletion Xcode/xcconfigs/Project.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ HEADER_SEARCH_PATHS = API $(SRCROOT)/vendor/date/

IPHONEOS_DEPLOYMENT_TARGET = 10.0
MACOSX_DEPLOYMENT_TARGET = 10.14
TVOS_DEPLOYMENT_TARGET = 9.0
TVOS_DEPLOYMENT_TARGET = 10.0
ONLY_ACTIVE_ARCH = YES
SKIP_INSTALL = YES
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator
Expand Down

0 comments on commit 8e10e3d

Please sign in to comment.