From 58f779b422ffbb2291364dcd5966ead10b21b087 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 17 Feb 2010 00:39:46 +0000 Subject: Formatting whitespace. --- src/PositionCache.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/PositionCache.cxx') diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 7bb0106fa..b2c2c2ede 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -361,7 +361,8 @@ void BreakFinder::Insert(int val) { for (unsigned int j = 0; jj; k--) { selAndEdge[k] = selAndEdge[k-1]; } @@ -534,7 +535,7 @@ void PositionCacheEntry::Set(unsigned int styleNumber_, const char *s_, clock = clock_; if (s_ && positions_) { positions = new short[len + (len + 1) / 2]; - for (unsigned int i=0;i(positions_[i]); } memcpy(reinterpret_cast(positions + len), s_, len); @@ -557,7 +558,7 @@ bool PositionCacheEntry::Retrieve(unsigned int styleNumber_, const char *s_, unsigned int len_, int *positions_) const { if ((styleNumber == styleNumber_) && (len == len_) && (memcmp(reinterpret_cast(positions + len), s_, len)== 0)) { - for (unsigned int i=0;i 60000) { // Since there are only 16 bits for the clock, wrap it round and // reset all cache entries so none get stuck with a high clock. - for (size_t i=0;i