Commit 53877a0
authored
refactor: Rewrite AMF and property behavior logic to use smart pointers, references, and string_views over raw pointers and std::string& (#1452)
* Rewrite AMF and behavior logic to use smart pointers, references, and string_views over raw pointers and std::string&
* fix m_BehaviorID initialization
* Fix BlockDefinition member naming
* remove redundant reset()s
* Replace UB forward template declarations with header include
* remove unneeded comment
* remove non-const ref getters
* simplify default behavior id initialization
* Fix invalidated use of Getter to set a value
* Update AddStripMessage.cpp - change push_back to emplace_back
* fix pointer to ref conversion mistake (should not have directly grabbed from the other branch commit)
* deref
* VERY experimental testing of forward declaration of templates - probably will revert
* Revert changes (as expected)
* Update BlockDefinition.h - remove extraneous semicolons
* Update BlockDefinition.h - remove linebreak
* Update Amf3.h member naming scheme
* fix duplicated code
* const iterators
* const pointers
* reviving this branch
* update read switch cases1 parent 83f8646 commit 53877a0
File tree
25 files changed
+200
-181
lines changed- dCommon
- dGame
- dComponents
- dGameMessages
- dPropertyBehaviors
- ControlBehaviorMessages
- tests
- dCommonTests
- dGameTests/dGameMessagesTests
25 files changed
+200
-181
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
58 | 34 | | |
59 | 35 | | |
60 | 36 | | |
61 | 37 | | |
| 38 | + | |
62 | 39 | | |
| 40 | + | |
63 | 41 | | |
| 42 | + | |
64 | 43 | | |
| 44 | + | |
65 | 45 | | |
| 46 | + | |
66 | 47 | | |
| 48 | + | |
67 | 49 | | |
| 50 | + | |
68 | 51 | | |
| 52 | + | |
69 | 53 | | |
70 | | - | |
| 54 | + | |
| 55 | + | |
71 | 56 | | |
72 | | - | |
73 | | - | |
74 | 57 | | |
75 | 58 | | |
76 | | - | |
77 | 59 | | |
78 | | - | |
79 | 60 | | |
80 | 61 | | |
81 | 62 | | |
| |||
118 | 99 | | |
119 | 100 | | |
120 | 101 | | |
121 | | - | |
| 102 | + | |
122 | 103 | | |
123 | 104 | | |
124 | | - | |
| 105 | + | |
125 | 106 | | |
126 | 107 | | |
127 | | - | |
128 | | - | |
| 108 | + | |
| 109 | + | |
129 | 110 | | |
130 | 111 | | |
131 | 112 | | |
| |||
143 | 124 | | |
144 | 125 | | |
145 | 126 | | |
146 | | - | |
147 | | - | |
| 127 | + | |
| 128 | + | |
148 | 129 | | |
149 | 130 | | |
150 | | - | |
151 | | - | |
| 131 | + | |
| 132 | + | |
152 | 133 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments