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

QtProtobuf: Add clear() to QProtobufMessage

XMLWordPrintable

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

      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.

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

            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

              Created:
              Updated:

                There are no open Gerrit changes