Skip to content

Commit b77d1c7

Browse files
committed
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.
1 parent c73fab5 commit b77d1c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/lucene++/Collection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class Collection : public LuceneSync {
167167
}
168168

169169
void swap(this_type& other) {
170-
container.swap(other->container);
170+
container.swap(other.container);
171171
}
172172

173173
TYPE& operator[] (int32_t pos) {

include/lucene++/Set.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Set : public LuceneSync {
108108
}
109109

110110
void swap(this_type& other) {
111-
setContainer.swap(other->setContainer);
111+
setContainer.swap(other.setContainer);
112112
}
113113

114114
operator bool() const {

0 commit comments

Comments
 (0)