[haiku-commits] haiku: hrev46025 - src/apps/haiku-depot

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 6 Sep 2013 10:11:03 +0200 (CEST)

hrev46025 adds 1 changeset to branch 'master'
old head: 00861147be6003276aa646bbca3ef3cb2cbf3ed3
new head: e75fda02029e7283338487d7c7b1575b6447a270
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=e75fda0+%5E0086114

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

e75fda0: HaikuDepot: List.h: Coding style fix

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

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

Revision:    hrev46025
Commit:      e75fda02029e7283338487d7c7b1575b6447a270
URL:         http://cgit.haiku-os.org/haiku/commit/?id=e75fda0
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Fri Sep  6 08:10:39 2013 UTC

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

1 file changed, 2 insertions(+), 1 deletion(-)
src/apps/haiku-depot/List.h | 3 ++-

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

diff --git a/src/apps/haiku-depot/List.h b/src/apps/haiku-depot/List.h
index eb229aa..02ce67c 100644
--- a/src/apps/haiku-depot/List.h
+++ b/src/apps/haiku-depot/List.h
@@ -159,9 +159,10 @@ public:
                }
 
                int32 nextIndex = index + 1;
-               if ((int32)fCount > nextIndex)
+               if ((int32)fCount > nextIndex) {
                        memcpy(fItems + index, fItems + nextIndex,
                                (fCount - nextIndex) * sizeof(ItemType));
+               }
                
                fCount--;
        }


Other related posts:

  • » [haiku-commits] haiku: hrev46025 - src/apps/haiku-depot - superstippi