Skip to content

Commit

Permalink
Don't use {} as constructor in a template context,
Browse files Browse the repository at this point in the history
because it reqires a copy onstructor with clang 32
  • Loading branch information
daschuer committed Jul 25, 2023
1 parent 00780ff commit 6b99d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/channelhandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class ChannelHandleMap {
typedef typename QVarLengthArray<T, kMaxExpectedGroups>::iterator iterator;

ChannelHandleMap()
: m_dummy{} {
: m_dummy() {
}

const T& at(const ChannelHandle& handle) const {
Expand Down Expand Up @@ -219,7 +219,7 @@ class ChannelHandleMap {
} else {
// We need to initialize simple types ourselves
while (m_data.size() < iSize) {
m_data.append(std::move(T{}));
m_data.append(std::move(T()));
}
}
}
Expand Down

0 comments on commit 6b99d4d

Please sign in to comment.