summaryrefslogtreecommitdiff
path: root/automation
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-24 10:31:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-24 10:31:42 +0100
commitb2df7eb80d79eca8b98f5f3798b91f4e0fe5efde (patch)
treed1b765ff3e0f1445f0c988e78641e25a70a5c22e /automation
parentb87fed20f6f832a3bec032364ea2cd7c3da4da0b (diff)
BinUSHORT->BinUINT16 && BinULONG->BinUINT32
Diffstat (limited to 'automation')
-rw-r--r--automation/source/inc/rcontrol.hxx4
-rw-r--r--automation/source/server/cmdbasestream.cxx8
-rw-r--r--automation/source/server/scmdstrm.cxx16
-rw-r--r--automation/source/server/statemnt.cxx2
-rw-r--r--automation/source/testtool/cmdstrm.cxx4
5 files changed, 17 insertions, 17 deletions
diff --git a/automation/source/inc/rcontrol.hxx b/automation/source/inc/rcontrol.hxx
index 13102892da08..586c3bd6a255 100644
--- a/automation/source/inc/rcontrol.hxx
+++ b/automation/source/inc/rcontrol.hxx
@@ -54,8 +54,8 @@
#define SIReturnError 13
// Typisierung im Stream
-#define BinUSHORT 11
-#define BinULONG 14
+#define BinUINT16 11
+#define BinUINT32 14
#define BinString 12
#define BinBool 13
#define BinSbxValue 15
diff --git a/automation/source/server/cmdbasestream.cxx b/automation/source/server/cmdbasestream.cxx
index bddfc812a301..0f7c5e1f886b 100644
--- a/automation/source/server/cmdbasestream.cxx
+++ b/automation/source/server/cmdbasestream.cxx
@@ -212,7 +212,7 @@ void CmdBaseStream::Read (comm_UINT16 &nNr)
*pCommStream >> nId;
if (pCommStream->IsEof()) return;
#if OSL_DEBUG_LEVEL > 1
- if (nId != BinUSHORT) OSL_TRACE( "Falscher Typ im Stream: Erwartet USHORT, gefunden :%hu", nId );
+ if (nId != BinUINT16) OSL_TRACE( "Falscher Typ im Stream: Erwartet USHORT, gefunden :%hu", nId );
#endif
*pCommStream >> nNr;
}
@@ -223,7 +223,7 @@ void CmdBaseStream::Read (comm_UINT32 &nNr)
*pCommStream >> nId;
if (pCommStream->IsEof()) return;
#if OSL_DEBUG_LEVEL > 1
- if (nId != BinULONG) OSL_TRACE( "Falscher Typ im Stream: Erwartet ULONG, gefunden :%hu", nId );
+ if (nId != BinUINT32) OSL_TRACE( "Falscher Typ im Stream: Erwartet ULONG, gefunden :%hu", nId );
#endif
*pCommStream >> nNr;
}
@@ -269,13 +269,13 @@ comm_UINT16 CmdBaseStream::GetNextType()
void CmdBaseStream::Write( comm_UINT16 nNr )
{
- *pCommStream << comm_UINT16( BinUSHORT );
+ *pCommStream << comm_UINT16( BinUINT16 );
*pCommStream << nNr;
}
void CmdBaseStream::Write( comm_UINT32 nNr )
{
- *pCommStream << comm_UINT16( BinULONG );
+ *pCommStream << comm_UINT16( BinUINT32 );
*pCommStream << nNr;
}
diff --git a/automation/source/server/scmdstrm.cxx b/automation/source/server/scmdstrm.cxx
index a36d7d4fbe27..65bc818d8b15 100644
--- a/automation/source/server/scmdstrm.cxx
+++ b/automation/source/server/scmdstrm.cxx
@@ -86,24 +86,24 @@ void SCmdStream::Read ( SfxPoolItem *&pItem )
Read( nType );
switch (nType)
{
- case BinUSHORT:
+ case BinUINT16:
{
comm_UINT16 nNr;
Read (nNr );
pItem = new SfxUInt16Item(nId,nNr);
#if OSL_DEBUG_LEVEL > 1
- StatementList::m_pDbgWin->AddText( "USHORT:" );
+ StatementList::m_pDbgWin->AddText( "UINT16" );
StatementList::m_pDbgWin->AddText( String::CreateFromInt32( nNr ) );
#endif
}
break;
- case BinULONG:
+ case BinUINT32:
{
comm_UINT32 nNr;
Read (nNr );
pItem = new SfxUInt32Item(nId,nNr);
#if OSL_DEBUG_LEVEL > 1
- StatementList::m_pDbgWin->AddText( "ULONG:" );
+ StatementList::m_pDbgWin->AddText( "UINT32" );
StatementList::m_pDbgWin->AddText( String::CreateFromInt64( nNr ) );
#endif
}
@@ -157,24 +157,24 @@ void SCmdStream::Read ( ::com::sun::star::beans::PropertyValue &rItem )
nType = GetNextType();
switch (nType)
{
- case BinUSHORT:
+ case BinUINT16:
{
comm_UINT16 nNr;
Read (nNr );
rItem.Value <<= nNr;
#if OSL_DEBUG_LEVEL > 1
- StatementList::m_pDbgWin->AddText( "USHORT:" );
+ StatementList::m_pDbgWin->AddText( "UINT16" );
StatementList::m_pDbgWin->AddText( String::CreateFromInt32( nNr ) );
#endif
}
break;
- case BinULONG:
+ case BinUINT32:
{
comm_UINT32 nNr;
Read (nNr );
rItem.Value <<= nNr;
#if OSL_DEBUG_LEVEL > 1
- StatementList::m_pDbgWin->AddText( "ULONG:" );
+ StatementList::m_pDbgWin->AddText( "UINT32" );
StatementList::m_pDbgWin->AddText( String::CreateFromInt64( nNr ) );
#endif
}
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index 41b9fa4a18f6..3cd50d3803b0 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -349,7 +349,7 @@ StatementSlot::StatementSlot( SCmdStream *pCmdIn )
{
switch ( pCmdIn->GetNextType() )
{
- case BinUSHORT: // use old calling method
+ case BinUINT16: // use old calling method
{
nAnzahl++;
pItemArr = new SfxPoolItem*[nAnzahl];
diff --git a/automation/source/testtool/cmdstrm.cxx b/automation/source/testtool/cmdstrm.cxx
index 82e36331ee46..6960d41cf15e 100644
--- a/automation/source/testtool/cmdstrm.cxx
+++ b/automation/source/testtool/cmdstrm.cxx
@@ -344,7 +344,7 @@ void CmdStream::GenCmdSlot( sal_uInt16 nNr, SbxArray* rPar )
case SbxUINT:
case SbxSINGLE:
if ( !bWriteUnoSlot )
- Write( (sal_uInt16)BinUSHORT );
+ Write( (sal_uInt16)BinUINT16 );
Write(rPar->Get( 2*n )->GetUShort());
break;
case SbxLONG:
@@ -353,7 +353,7 @@ void CmdStream::GenCmdSlot( sal_uInt16 nNr, SbxArray* rPar )
case SbxSALUINT64:
case SbxDOUBLE:
if ( !bWriteUnoSlot )
- Write( (sal_uInt16)BinULONG );
+ Write( (sal_uInt16)BinUINT32 );
Write(rPar->Get( 2*n )->GetULong());
break;
case SbxSTRING: