Skip to content

Commit e717b3a

Browse files
authored
Merge pull request #213 from poedit/clang17-compilation
Fix compilation with clang-17
2 parents c73fab5 + b77d1c7 commit e717b3a

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)