diff options
author | Eike Rathke <erack@redhat.com> | 2016-02-22 19:47:30 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-02-22 21:30:29 +0100 |
commit | 41cd992b0229b2cb814b96b52c0038bf12473b37 (patch) | |
tree | ad7a030717370a62c2322865bc9725f17bee4baf /sc | |
parent | d3c79d019114b7786268a1e821f96554e54767c0 (diff) |
confusing block indentation
Change-Id: I42dc30742a65062374e700a70796f129e61b13c1
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table3.cxx | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index dfebe57fb813..b3974f5a0a7e 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -2435,32 +2435,34 @@ public: && (nStart != 0 || nEnd != aCellStr.getLength()) ) bMatch = false; // RegExp must match entire cell string if ( bRealWildOrRegExp ) - switch (rEntry.eOp) { - case SC_EQUAL: - case SC_CONTAINS: - bOk = bMatch; - break; - case SC_NOT_EQUAL: - case SC_DOES_NOT_CONTAIN: - bOk = !bMatch; - break; - case SC_BEGINS_WITH: - bOk = ( bMatch && (nStart == 0) ); - break; - case SC_DOES_NOT_BEGIN_WITH: - bOk = !( bMatch && (nStart == 0) ); - break; - case SC_ENDS_WITH: - bOk = ( bMatch && (nEnd == aCellStr.getLength()) ); - break; - case SC_DOES_NOT_END_WITH: - bOk = !( bMatch && (nEnd == aCellStr.getLength()) ); - break; - default: - { - // added to avoid warnings - } + switch (rEntry.eOp) + { + case SC_EQUAL: + case SC_CONTAINS: + bOk = bMatch; + break; + case SC_NOT_EQUAL: + case SC_DOES_NOT_CONTAIN: + bOk = !bMatch; + break; + case SC_BEGINS_WITH: + bOk = ( bMatch && (nStart == 0) ); + break; + case SC_DOES_NOT_BEGIN_WITH: + bOk = !( bMatch && (nStart == 0) ); + break; + case SC_ENDS_WITH: + bOk = ( bMatch && (nEnd == aCellStr.getLength()) ); + break; + case SC_DOES_NOT_END_WITH: + bOk = !( bMatch && (nEnd == aCellStr.getLength()) ); + break; + default: + { + // added to avoid warnings + } + } } else bTestEqual = bMatch; |