diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
commit | 22b07e0233a29d9633ffa825a79503befaf2e16e (patch) | |
tree | 1d8b06056f8e12197158f5d906319767d3dedda5 /libs/pbd/whitespace.cc | |
parent | e11ba7b79d68bc1070b170236c22123966d7bcc3 (diff) |
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/pbd/whitespace.cc')
-rw-r--r-- | libs/pbd/whitespace.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/whitespace.cc b/libs/pbd/whitespace.cc index fa4a94b995..57c133db26 100644 --- a/libs/pbd/whitespace.cc +++ b/libs/pbd/whitespace.cc @@ -22,14 +22,14 @@ using namespace std; namespace PBD { - + void strip_whitespace_edges (string& str) { string::size_type i; string::size_type len; string::size_type s = 0; - + len = str.length(); if (len == 1) { @@ -37,7 +37,7 @@ strip_whitespace_edges (string& str) } /* strip front */ - + for (i = 0; i < len; ++i) { if (!isspace (str[i])) { break; @@ -60,7 +60,7 @@ strip_whitespace_edges (string& str) if (s == i) { return; } - + do { if (!isspace (str[i]) || i == 0) { break; @@ -69,7 +69,7 @@ strip_whitespace_edges (string& str) --i; } while (true); - + str = str.substr (s, (i - s) + 1); } else { |