[haiku-commits] haiku: hrev52148 - src/apps/debugger/user_interface/gui/team_window

  • From: Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 1 Aug 2018 12:30:50 -0400 (EDT)

hrev52148 adds 2 changesets to branch 'master'
old head: 004094b5742ef73c72cde1e9ccc1aa40d9a1a402
new head: 61e207f6e1cf46fbbd0e38e33c586afbafb2a011
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=61e207f6e1cf+%5E004094b5742e

----------------------------------------------------------------------------

9832d1f89a33: Use strict typing

61e207f6e1cf: Unused
  
  Approved by DeadYak to remove

                         [ Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx> ]

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 3 deletions(-)
.../debugger/user_interface/gui/team_window/VariablesView.cpp   | 6 +++---

############################################################################

Commit:      9832d1f89a33479d87946824653d25b68e6d3467
URL:         https://git.haiku-os.org/haiku/commit/?id=9832d1f89a33
Author:      Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
Date:        Wed Aug  1 16:28:06 2018 UTC

Use strict typing

----------------------------------------------------------------------------

diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp 
b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
index de156c9147..c397ae4267 100644
--- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
+++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
@@ -243,7 +243,7 @@ public:
 protected:
        virtual uint32 ComputeHashValue() const
        {
-               uint32 hash = *(uint32*)(&fInfo);
+               uint32 hash = reinterpret_cast<addr_t>(fInfo);
                hash = hash * 19 + StringUtils::HashValue(fInfo->Expression());
 
                return hash;

############################################################################

Revision:    hrev52148
Commit:      61e207f6e1cf46fbbd0e38e33c586afbafb2a011
URL:         https://git.haiku-os.org/haiku/commit/?id=61e207f6e1cf
Author:      Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
Date:        Wed Aug  1 16:29:49 2018 UTC

Unused

Approved by DeadYak to remove

----------------------------------------------------------------------------

diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp 
b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
index c397ae4267..571231b920 100644
--- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
+++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp
@@ -2800,11 +2800,11 @@ VariablesView::_AddTypeHandlerMenuIfNeeded(ModelNode* 
node,
 {
        ValueNodeChild* child = node->NodeChild();
 
-       Type* type = child->GetType();
+//     Type* type = child->GetType();
        if (node->CountChildren() == 1 && node->ChildAt(0)->IsHidden()) {
                node = node->ChildAt(0);
                child = node->NodeChild();
-               type = child->GetType();
+//             type = child->GetType();
        }
 
        int32 handlerCount = TypeHandlerRoster::Default()->CountTypeHandlers(


Other related posts:

  • » [haiku-commits] haiku: hrev52148 - src/apps/debugger/user_interface/gui/team_window - Fredrik Holmqvist