From fd9763cb7ecb05c43bcd23f6aedf73489e1bccb8 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Sun, 24 Jul 2022 18:52:21 +1000 Subject: tools: prefix member variables with an 'm' Also updated debug pretty-printers Change-Id: I5204bb8f1c6a47677ad3c49d6579c090ea69aedc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137388 Tested-by: Jenkins Reviewed-by: Michael Stahl --- solenv/gdb/libreoffice/tl.py | 16 ++++++++-------- solenv/vs/LibreOffice.natvis | 18 +++++++++--------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'solenv') diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py index 8e15bfd47a0d..5eb2c45ca54f 100644 --- a/solenv/gdb/libreoffice/tl.py +++ b/solenv/gdb/libreoffice/tl.py @@ -156,8 +156,8 @@ class PointPrinter(object): return "%s" % (self.typename) def children(self): - x = self.value['nA'] - y = self.value['nB'] + x = self.value['mnA'] + y = self.value['mnB'] children = [('x', x), ('y', y)] return children.__iter__() @@ -172,8 +172,8 @@ class SizePrinter(object): return "%s" % (self.typename) def children(self): - width = self.value['nA'] - height = self.value['nB'] + width = self.value['mnA'] + height = self.value['mnB'] children = [('width', width), ('height', height)] return children.__iter__() @@ -188,10 +188,10 @@ class RectanglePrinter(object): return "%s" % (self.typename) def children(self): - left = self.value['nLeft'] - top = self.value['nTop'] - right = self.value['nRight'] - bottom = self.value['nBottom'] + left = self.value['mnLeft'] + top = self.value['mnTop'] + right = self.value['mnRight'] + bottom = self.value['mnBottom'] children = [('left', left), ('top', top), ('right', right), ('bottom', bottom)] return children.__iter__() diff --git a/solenv/vs/LibreOffice.natvis b/solenv/vs/LibreOffice.natvis index 23445345a631..ec89af18ff68 100644 --- a/solenv/vs/LibreOffice.natvis +++ b/solenv/vs/LibreOffice.natvis @@ -89,29 +89,29 @@ {mpImpl} - X:{nA}, Y:{nB} + X:{mnA}, Y:{mnB} - W:{nA}, H:{nB} + W:{mnA}, H:{mnB} - Min:{nA}, Max:{nB} + Min:{mnA}, Max:{mnB} - Min:{nA}, Max:{nB} + Min:{mnA}, Max:{mnB} - A:{nA}, B:{nB} + A:{mnA}, B:{mnB} {m_Point}, {m_Size} - {nRight==-32767?0:(nRight-nLeft+(nLeft>nRight?(-1):(1)))} - {nBottom==-32767?0:(nBottom-nTop+(nTop>nBottom?(-1):(1)))} - empty + {mnRight==-32767?0:(mnRight-mnLeft+(mnLeft>mnRight?(-1):(1)))} + {mnBottom==-32767?0:(mnBottom-mnTop+(mnTop>mnBottom?(-1):(1)))} + empty {*this,view(w)nd} x {*this,view(h)nd} - {{ LT=[{nLeft} , {nTop}] RB=[{nRight} , {nBottom}] [{*this,view(sz)}] }} + {{ LT=[{mnLeft} , {mnTop}] RB=[{mnRight} , {mnBottom}] [{*this,view(sz)}] }} _sal_Sequence (empty) -- cgit v1.2.3