summaryrefslogtreecommitdiff
path: root/store/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-20 10:54:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-20 10:54:20 +0200
commit104a7bab5806aad5dfc8afb5637ca4363e05443a (patch)
treefc01542ddc022eea1fe48c289f61151cd616ad43 /store/source
parenta9966b272151fa66c4a7c74bcb2505ef2ea94a6e (diff)
-Werror,-Wdeprecated-register
Change-Id: I1ec3d7845477cfb5bc6a3d7f70ddabef12583e1b
Diffstat (limited to 'store/source')
-rw-r--r--store/source/storcach.cxx4
-rw-r--r--store/source/stortree.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx
index 481177e0c831..e2ac68b68dc5 100644
--- a/store/source/storcach.cxx
+++ b/store/source/storcach.cxx
@@ -222,7 +222,7 @@ void EntryCache::destroy (Entry * entry)
*======================================================================*/
static int highbit(sal_Size n)
{
- register int k = 1;
+ int k = 1;
if (n == 0)
return (0);
@@ -420,7 +420,7 @@ void PageCache_Impl::rescale_Impl (sal_Size new_size)
Entry * PageCache_Impl::lookup_Impl (Entry * entry, sal_uInt32 nOffset)
{
- register int lookups = 0;
+ int lookups = 0;
while (entry != 0)
{
if (entry->m_nOffset == nOffset)
diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx
index 149982438f4e..04bcd89dd9bf 100644
--- a/store/source/stortree.cxx
+++ b/store/source/stortree.cxx
@@ -57,12 +57,12 @@ OStoreBTreeNodeData::OStoreBTreeNodeData (sal_uInt16 nPageSize)
*/
sal_uInt16 OStoreBTreeNodeData::find (const T& t) const
{
- register sal_Int32 l = 0;
- register sal_Int32 r = usageCount() - 1;
+ sal_Int32 l = 0;
+ sal_Int32 r = usageCount() - 1;
while (l < r)
{
- register sal_Int32 const m = ((l + r) >> 1);
+ sal_Int32 const m = ((l + r) >> 1);
if (t.m_aKey == m_pData[m].m_aKey)
return ((sal_uInt16)(m));