Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126207

QtProtobuf: Add clear() to QProtobufMessage

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Protocol Buffers
    • None
    • 8

    Description

      We should add a clear() method to the QProtobufMessage class.

      This emerged from here: https://codereview.qt-project.org/c/qt/qtgrpc/+/566935

      Currently we "clear" in the deserialize() method by a placement new. This would already be a first user as it should be superior to clearing by placement new.

      The method should set the default values to all fields that the message contains.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semlanik Alexey Edelev
            dennisoberst Dennis Oberst
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes