aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2018-12-11 10:25:47 -0800
committerMike Buland <mbuland@penny-arcade.com>2018-12-11 10:25:47 -0800
commit0cf743be2d6b351b1c09d240aa7a20443c8026ed (patch)
tree877953d33a061dfdbbb2ea3bda6059ccf221de1e /src/stable
parentb8184b41882a9670447f0d99b35a48d24c091b25 (diff)
downloadlibbu++-0cf743be2d6b351b1c09d240aa7a20443c8026ed.tar.gz
libbu++-0cf743be2d6b351b1c09d240aa7a20443c8026ed.tar.bz2
libbu++-0cf743be2d6b351b1c09d240aa7a20443c8026ed.tar.xz
libbu++-0cf743be2d6b351b1c09d240aa7a20443c8026ed.zip
Fixed some indenting that gcc whined about.
Diffstat (limited to 'src/stable')
-rw-r--r--src/stable/array.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/stable/array.h b/src/stable/array.h
index 8c17cc4..82b43a4 100644
--- a/src/stable/array.h
+++ b/src/stable/array.h
@@ -377,11 +377,15 @@ namespace Bu
377 iterator operator++( int ) 377 iterator operator++( int )
378 { 378 {
379 if( iPos < 0 ) 379 if( iPos < 0 )
380 {
380 throw ArrayException( 381 throw ArrayException(
381 "Cannot increment iterator past end of array."); 382 "Cannot increment iterator past end of array.");
382 iPos++; 383 }
384 iPos++;
383 if( iPos >= src.getSize() ) 385 if( iPos >= src.getSize() )
386 {
384 iPos = -1; 387 iPos = -1;
388 }
385 return *this; 389 return *this;
386 } 390 }
387 391
@@ -397,9 +401,11 @@ namespace Bu
397 iterator operator+( int iAmnt ) 401 iterator operator+( int iAmnt )
398 { 402 {
399 if( iPos < 0 ) 403 if( iPos < 0 )
404 {
400 throw ArrayException( 405 throw ArrayException(
401 "Cannot increment iterator past end of array."); 406 "Cannot increment iterator past end of array.");
402 iPos += iAmnt; 407 }
408 iPos += iAmnt;
403 if( iPos >= src.getSize() ) 409 if( iPos >= src.getSize() )
404 iPos = -1; 410 iPos = -1;
405 return *this; 411 return *this;
@@ -408,9 +414,11 @@ namespace Bu
408 iterator operator--( int ) 414 iterator operator--( int )
409 { 415 {
410 if( iPos < 0 ) 416 if( iPos < 0 )
417 {
411 throw ArrayException( 418 throw ArrayException(
412 "Cannot increment iterator past end of array."); 419 "Cannot increment iterator past end of array.");
413 iPos--; 420 }
421 iPos--;
414 if( iPos < 0 ) 422 if( iPos < 0 )
415 iPos = -1; 423 iPos = -1;
416 return *this; 424 return *this;
@@ -507,9 +515,11 @@ namespace Bu
507 const_iterator operator++( int ) 515 const_iterator operator++( int )
508 { 516 {
509 if( iPos < 0 ) 517 if( iPos < 0 )
518 {
510 throw ArrayException( 519 throw ArrayException(
511 "Cannot increment iterator past end of array."); 520 "Cannot increment iterator past end of array.");
512 iPos++; 521 }
522 iPos++;
513 if( iPos >= src.getSize() ) 523 if( iPos >= src.getSize() )
514 iPos = -1; 524 iPos = -1;
515 return *this; 525 return *this;
@@ -527,9 +537,11 @@ namespace Bu
527 const_iterator operator--( int ) 537 const_iterator operator--( int )
528 { 538 {
529 if( iPos < 0 ) 539 if( iPos < 0 )
540 {
530 throw ArrayException( 541 throw ArrayException(
531 "Cannot increment iterator past end of array."); 542 "Cannot increment iterator past end of array.");
532 iPos--; 543 }
544 iPos--;
533 if( iPos < 0 ) 545 if( iPos < 0 )
534 iPos = -1; 546 iPos = -1;
535 return *this; 547 return *this;