diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-13 11:06:43 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-13 11:06:43 +0100 |
commit | 843f0c289fa3c2c8859df495ec7158455555c7eb (patch) | |
tree | 441b7fda43cc40a05b8bfb6d77669dc5032f347e /linguistic | |
parent | 491e0010689b6f0da5f032725e7162bc6bc683db (diff) |
removetooltypes01: #i112600# Exchange misleading sal_uIntPtr with sal_uLong in linguistic
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/convdic.cxx | 2 | ||||
-rwxr-xr-x | linguistic/source/dicimp.cxx | 12 | ||||
-rw-r--r-- | linguistic/source/dicimp.hxx | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index eed826625d..4ca6681f7e 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -110,7 +110,7 @@ void ReadThroughDic( const String &rMainURL, ConvDicXMLImport &rImport ) SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xIn ) ); - sal_uIntPtr nError = sal::static_int_cast< sal_uIntPtr >(-1); + sal_uLong nError = sal::static_int_cast< sal_uLong >(-1); // prepare ParserInputSource xml::sax::InputSource aParserInput; diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index e3dd0e96a5..3c4d896df9 100755 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -261,7 +261,7 @@ DictionaryNeo::~DictionaryNeo() { } -sal_uIntPtr DictionaryNeo::loadEntries(const OUString &rMainURL) +sal_uLong DictionaryNeo::loadEntries(const OUString &rMainURL) { MutexGuard aGuard( GetLinguMutex() ); @@ -291,11 +291,11 @@ sal_uIntPtr DictionaryNeo::loadEntries(const OUString &rMainURL) (void) e; } if (!xStream.is()) - return static_cast< sal_uIntPtr >(-1); + return static_cast< sal_uLong >(-1); SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) ); - sal_uIntPtr nErr = sal::static_int_cast< sal_uIntPtr >(-1); + sal_uLong nErr = sal::static_int_cast< sal_uLong >(-1); // Header einlesen sal_Bool bNegativ; @@ -411,7 +411,7 @@ static ByteString formatForSave( } -sal_uIntPtr DictionaryNeo::saveEntries(const OUString &rURL) +sal_uLong DictionaryNeo::saveEntries(const OUString &rURL) { MutexGuard aGuard( GetLinguMutex() ); @@ -435,10 +435,10 @@ sal_uIntPtr DictionaryNeo::saveEntries(const OUString &rURL) (void) e; } if (!xStream.is()) - return static_cast< sal_uIntPtr >(-1); + return static_cast< sal_uLong >(-1); SvStreamPtr pStream = SvStreamPtr( utl::UcbStreamHelper::CreateStream( xStream ) ); - sal_uIntPtr nErr = sal::static_int_cast< sal_uIntPtr >(-1); + sal_uLong nErr = sal::static_int_cast< sal_uLong >(-1); // // Always write as the latest version, i.e. DIC_VERSION_7 diff --git a/linguistic/source/dicimp.hxx b/linguistic/source/dicimp.hxx index f33d1c7958..4e51eb502e 100644 --- a/linguistic/source/dicimp.hxx +++ b/linguistic/source/dicimp.hxx @@ -83,8 +83,8 @@ class DictionaryNeo : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionaryEntry > xEntry); - sal_uIntPtr loadEntries(const ::rtl::OUString &rMainURL); - sal_uIntPtr saveEntries(const ::rtl::OUString &rMainURL); + sal_uLong loadEntries(const ::rtl::OUString &rMainURL); + sal_uLong saveEntries(const ::rtl::OUString &rMainURL); int cmpDicEntry(const ::rtl::OUString &rWord1, const ::rtl::OUString &rWord2, sal_Bool bSimilarOnly = sal_False); |