summaryrefslogtreecommitdiff
path: root/connectivity/source/resource/sharedresources.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/resource/sharedresources.cxx')
-rw-r--r--connectivity/source/resource/sharedresources.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/resource/sharedresources.cxx b/connectivity/source/resource/sharedresources.cxx
index a08e9bede4..4910b8c78e 100644
--- a/connectivity/source/resource/sharedresources.cxx
+++ b/connectivity/source/resource/sharedresources.cxx
@@ -157,17 +157,17 @@ namespace connectivity
size_t lcl_substitute( ::rtl::OUString& _inout_rString,
const sal_Char* _pAsciiPattern, const ::rtl::OUString& _rReplace )
{
- size_t nOccurences = 0;
+ size_t nOccurrences = 0;
::rtl::OUString sPattern( ::rtl::OUString::createFromAscii( _pAsciiPattern ) );
sal_Int32 nIndex = 0;
while ( ( nIndex = _inout_rString.indexOf( sPattern ) ) > -1 )
{
- ++nOccurences;
+ ++nOccurrences;
_inout_rString = _inout_rString.replaceAt( nIndex, sPattern.getLength(), _rReplace );
}
- return nOccurences;
+ return nOccurrences;
}
}