summaryrefslogtreecommitdiff
path: root/ui/uicomment.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-07-03 01:08:47 -0400
committerGlenn Smith <glenn@vector35.com>2021-07-09 16:39:09 -0400
commit3808f91664f9632eb9d754a1ff99447b50468b36 (patch)
tree44f0dbf857de5aeeb03fe27fb2c11aa136074682 /ui/uicomment.h
parentd19f5e85ee26c3d6604798d30ab821d15731cada (diff)
Cleanup tags and comments in many places
Fixes #1926 #2374 #2325 #2204 #1652 and possibly others
Diffstat (limited to 'ui/uicomment.h')
-rw-r--r--ui/uicomment.h68
1 files changed, 36 insertions, 32 deletions
diff --git a/ui/uicomment.h b/ui/uicomment.h
index 6fd74917..1ed71af7 100644
--- a/ui/uicomment.h
+++ b/ui/uicomment.h
@@ -4,43 +4,47 @@
#include "uicontext.h"
// these are only intended to be used for the ui
-typedef enum
+typedef enum
{
FunctionComment,
- AddressComment
-}UICommentType;
+ AddressComment,
+ DataComment
+} UICommentType;
class UIComment
{
- public:
- UICommentType type;
- FunctionRef func;
- BinaryViewRef data;
- uint64_t address;
- QString content;
+public:
+ UICommentType type;
+ FunctionRef func;
+ BinaryViewRef data;
+ uint64_t address;
+ QString content;
- UIComment( UICommentType type,
- FunctionRef func,
- uint64_t address,
- QString content):
- type(type), func(func),
- address(address), content(content)
- {}
- UIComment( UICommentType type,
- BinaryViewRef data,
- uint64_t address,
- QString content):
- type(type), data(data),
- address(address), content(content)
- {}
-
- UIComment(const UIComment& rhs)
- {
- type = rhs.type;
- func = rhs.func;
- data = rhs.data;
- address = rhs.address;
- content = rhs.content;
- }
+ UIComment(UICommentType type,
+ FunctionRef func,
+ uint64_t address,
+ QString content):
+ type(type), func(func),
+ address(address), content(content)
+ {}
+
+
+ UIComment(UICommentType type,
+ BinaryViewRef data,
+ uint64_t address,
+ QString content):
+ type(type), data(data),
+ address(address), content(content)
+ {}
+
+
+ UIComment(const UIComment& rhs)
+ {
+ type = rhs.type;
+ func = rhs.func;
+ data = rhs.data;
+ address = rhs.address;
+ content = rhs.content;
+ }
}; \ No newline at end of file