Skip to content

Commit

Permalink
feat(utils): updating proto conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmn committed Oct 5, 2023
1 parent 38535ef commit e4818c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Armorial/Utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ namespace Utils {
* \param type The reference for the object of type T
*/
template <typename T>
[[nodiscard]] inline static constexpr bool convertDatagramToType(QNetworkDatagram &datagram, T& type) noexcept {
return (type.ParseFromArray(datagram.data().data(), datagram.data().size()));
[[nodiscard]] inline static constexpr bool convertDatagramToType(const QNetworkDatagram &datagram, T& type) noexcept {
return (type.ParseFromArray(datagram.data().constData(), datagram.data().size()));
}
}

Expand Down

0 comments on commit e4818c9

Please sign in to comment.