summaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/util/pb_utils.h
diff options
context:
space:
mode:
authorakhropov <[email protected]>2022-02-10 16:46:32 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:32 +0300
commit00afc96e9c0298054b7386fa7fb9e3cc3d67b974 (patch)
treecb7a9f4a92c0d4cc5a86eeed49ad71e810953c1f /library/cpp/protobuf/util/pb_utils.h
parent83a8efcf3af051e3dd59c00d1d5dafc96412ec1e (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/protobuf/util/pb_utils.h')
-rw-r--r--library/cpp/protobuf/util/pb_utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/protobuf/util/pb_utils.h b/library/cpp/protobuf/util/pb_utils.h
index 9e9a110b48b..83fe0af1674 100644
--- a/library/cpp/protobuf/util/pb_utils.h
+++ b/library/cpp/protobuf/util/pb_utils.h
@@ -1,10 +1,10 @@
-#pragma once
-
-#define UPDATE_PB_FIELD_MAX(PBMESS, FIELD, VAL) \
+#pragma once
+
+#define UPDATE_PB_FIELD_MAX(PBMESS, FIELD, VAL) \
if ((VAL) > (PBMESS).Get##FIELD()) { \
(PBMESS).Set##FIELD(VAL); \
}
-
+
#define UPDATE_OPT_PB_FIELD_MAX(PBMESS, FIELD, VAL) \
if (!(PBMESS).Has##FIELD() || ((VAL) > (PBMESS).Get##FIELD())) { \
(PBMESS).Set##FIELD(VAL); \