[44/47] Make struct value data members private

Message ID 20230209-submit-value-fixups-2023-v1-44-55dc2794dbb9@tromey.com
State New
Headers
Series Use methods for struct value |

Commit Message

Tom Tromey Feb. 9, 2023, 9:39 p.m. UTC
  This hoists the 'private' in struct value to also encompass the data
members.
---
 gdb/value.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/gdb/value.h b/gdb/value.h
index f082c6f62ff..6d0a2881d55 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -607,6 +607,7 @@  struct value
 					LONGEST bit_offset,
 					LONGEST bit_length);
 
+private:
 
   /* Type of value; either not an lval, or one of the various
      different possible kinds of lval.  */
@@ -773,8 +774,6 @@  struct value
      different string representation and related error strings.  */
   std::vector<range> m_optimized_out;
 
-private:
-
   /* Allocate the contents of this value if it has not been allocated
      yet.  */
   void allocate_contents ();