summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 10:54:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 19:35:38 +0100
commita52782591051ab3d61047e2d2c4514ada8c46440 (patch)
tree8ae50de87e79314100cf0945b884fd26b2fc9b15 /tools
parentecfb22783f2462ba264e8793e3798c676dc9b727 (diff)
sal_uIntPtr->sal_uInt32 in Config
Change-Id: Ifca1e69c0b9f1def49b4b1973e7582fb3e8b8826 Reviewed-on: https://gerrit.libreoffice.org/46706 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/config.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index 3175f3654f45..b5f392de5556 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -54,8 +54,8 @@ struct ImplConfigData
{
ImplGroupData* mpFirstGroup;
OUString maFileName;
- sal_uIntPtr mnDataUpdateId;
- sal_uIntPtr mnTimeStamp;
+ sal_uInt32 mnDataUpdateId;
+ sal_uInt32 mnTimeStamp;
LineEnd meLineEnd;
bool mbModified;
bool mbRead;
@@ -78,9 +78,9 @@ static OUString toUncPath( const OUString& rPath )
return aFileURL;
}
-static sal_uIntPtr ImplSysGetConfigTimeStamp( const OUString& rFileName )
+static sal_uInt32 ImplSysGetConfigTimeStamp( const OUString& rFileName )
{
- sal_uIntPtr nTimeStamp = 0;
+ sal_uInt32 nTimeStamp = 0;
::osl::DirectoryItem aItem;
::osl::FileStatus aStatus( osl_FileStatus_Mask_ModifyTime );
@@ -94,7 +94,7 @@ static sal_uIntPtr ImplSysGetConfigTimeStamp( const OUString& rFileName )
}
static sal_uInt8* ImplSysReadConfig( const OUString& rFileName,
- sal_uInt64& rRead, bool& rbRead, bool& rbIsUTF8BOM, sal_uIntPtr& rTimeStamp )
+ sal_uInt64& rRead, bool& rbRead, bool& rbIsUTF8BOM, sal_uInt32& rTimeStamp )
{
sal_uInt8* pBuf = nullptr;
::osl::File aFile( rFileName );
@@ -138,7 +138,7 @@ static sal_uInt8* ImplSysReadConfig( const OUString& rFileName,
}
static bool ImplSysWriteConfig( const OUString& rFileName,
- const sal_uInt8* pBuf, sal_uIntPtr nBufLen, bool rbIsUTF8BOM, sal_uIntPtr& rTimeStamp )
+ const sal_uInt8* pBuf, sal_uInt32 nBufLen, bool rbIsUTF8BOM, sal_uInt32& rTimeStamp )
{
bool bSuccess = false;
bool bUTF8BOMSuccess = false;
@@ -361,14 +361,14 @@ static void ImplMakeConfigList( ImplConfigData* pData,
}
}
-static sal_uInt8* ImplGetConfigBuffer( const ImplConfigData* pData, sal_uIntPtr& rLen )
+static sal_uInt8* ImplGetConfigBuffer( const ImplConfigData* pData, sal_uInt32& rLen )
{
sal_uInt8* pWriteBuf;
sal_uInt8* pBuf;
sal_uInt8 aLineEndBuf[2] = {0, 0};
ImplKeyData* pKey;
ImplGroupData* pGroup;
- unsigned int nBufLen;
+ sal_uInt32 nBufLen;
sal_uInt32 nValueLen;
sal_uInt32 nKeyLen;
sal_uInt32 nLineEndLen;
@@ -513,7 +513,7 @@ static sal_uInt8* ImplGetConfigBuffer( const ImplConfigData* pData, sal_uIntPtr&
static void ImplReadConfig( ImplConfigData* pData )
{
- sal_uIntPtr nTimeStamp = 0;
+ sal_uInt32 nTimeStamp = 0;
sal_uInt64 nRead = 0;
bool bRead = false;
bool bIsUTF8BOM = false;
@@ -539,7 +539,7 @@ static void ImplWriteConfig( ImplConfigData* pData )
"tools.generic", "Config overwrites modified configfile: " << pData->maFileName );
// Read config list from buffer
- sal_uIntPtr nBufLen;
+ sal_uInt32 nBufLen;
sal_uInt8* pBuf = ImplGetConfigBuffer( pData, nBufLen );
if ( pBuf )
{