Page MenuHomePhabricator

Stop using the deprecated google::protobuf::MessageLite::ByteSize()
ClosedPublic

Authored by majcosta on Feb 29 2020, 17:58.

Details

Summary

from build logs:

‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]'

https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message_lite#MessageLite.ByteSizeLong.details

Test Plan
ninja check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Feb 29 2020, 17:58
deadalnix requested changes to this revision.Feb 29 2020, 22:54
deadalnix added a subscriber: deadalnix.
deadalnix added inline comments.
src/qt/paymentserver.cpp
769 ↗(On Diff #16665)

This should be a size_t

This revision now requires changes to proceed.Feb 29 2020, 22:54

changed to using Qt types to avoid implicit conversions

This revision is now accepted and ready to land.Mar 1 2020, 00:42