Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix compilation with clang-17
Fix typos in Set<T>::swap() and Collection<T>::swap().

Apparently, no compiler ever tried to compile these methods before.
  • Loading branch information
vslavik committed Apr 3, 2025
commit b77d1c7569e6f5f361bea4850829ae4e70e193ec
2 changes: 1 addition & 1 deletion include/lucene++/Collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Collection : public LuceneSync {
}

void swap(this_type& other) {
container.swap(other->container);
container.swap(other.container);
}

TYPE& operator[] (int32_t pos) {
Expand Down
2 changes: 1 addition & 1 deletion include/lucene++/Set.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Set : public LuceneSync {
}

void swap(this_type& other) {
setContainer.swap(other->setContainer);
setContainer.swap(other.setContainer);
}

operator bool() const {
Expand Down