summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2011-01-13 11:06:43 +0100
committerCarsten Driesner <cd@openoffice.org>2011-01-13 11:06:43 +0100
commit0cb5080d653910d699238a7920174c2e73a8c801 (patch)
tree2a90e677c418a6ae6b99ac10c5f3e0f9cd4449ca /linguistic
parentd1b478f18dee26565d638054f54fabd5ac87c346 (diff)
removetooltypes01: #i112600# Exchange misleading sal_uIntPtr with sal_uLong in linguistic
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdic.cxx2
-rwxr-xr-xlinguistic/source/dicimp.cxx12
-rw-r--r--linguistic/source/dicimp.hxx4
3 files changed, 9 insertions, 9 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index f199c6630908..2f2fa78b8f72 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 de8fdd7ef6ac..05924609384f 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 3c186ecf517b..d6b4653db28e 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);