summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2012-03-28 17:54:20 +0300
committerVille Skyttä <ville.skytta@iki.fi>2012-03-28 17:54:20 +0300
commite74a3437211bed8e483ce289b87c99f479849a35 (patch)
tree001af70ff6ffad80f37411f507d6b8b97217b92a /cache.h
parenteb464b67a9ea3ba12056d8f8353d28833dfe68e3 (diff)
downloadvdr-plugin-text2skin-e74a3437211bed8e483ce289b87c99f479849a35.tar.gz
vdr-plugin-text2skin-e74a3437211bed8e483ce289b87c99f479849a35.tar.bz2
Trim trailing whitespace.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/cache.h b/cache.h
index 69f17c0..2360098 100644
--- a/cache.h
+++ b/cache.h
@@ -37,24 +37,24 @@ public:
};
template<class key_type, class data_type>
-inline bool cxCache<key_type, data_type>::Contains(const key_type &Key)
+inline bool cxCache<key_type, data_type>::Contains(const key_type &Key)
{
return mItems.find(Key) != mItems.end();
}
template<class key_type, class data_type>
-cxCache<key_type, data_type>::cxCache(uint MaxItems)
+cxCache<key_type, data_type>::cxCache(uint MaxItems)
{
mMaxItems = MaxItems;
}
template<class key_type, class data_type>
-cxCache<key_type, data_type>::~cxCache()
+cxCache<key_type, data_type>::~cxCache()
{
}
template<class key_type, class data_type>
-void cxCache<key_type, data_type>::Flush(void)
+void cxCache<key_type, data_type>::Flush(void)
{
item_iterator it = mItems.begin();
for (; it != mItems.end(); ++it)
@@ -65,7 +65,7 @@ void cxCache<key_type, data_type>::Flush(void)
}
template<class key_type, class data_type>
-void cxCache<key_type, data_type>::Reset(void)
+void cxCache<key_type, data_type>::Reset(void)
{
item_iterator it = mItems.begin();
for (; it != mItems.end(); ++it)
@@ -73,7 +73,7 @@ void cxCache<key_type, data_type>::Reset(void)
}
template<class key_type, class data_type>
-data_type &cxCache<key_type, data_type>::operator[](const key_type &Key)
+data_type &cxCache<key_type, data_type>::operator[](const key_type &Key)
{
item_iterator it = mItems.find(Key);
if (it != mItems.end()) {
@@ -86,7 +86,7 @@ data_type &cxCache<key_type, data_type>::operator[](const key_type &Key)
}
mUsage.push_back(Key);
return it->second;
- }
+ }
while (mUsage.size() >= mMaxItems) {
item_iterator it = mItems.find(*mUsage.begin());