summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-05-06 10:41:50 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-05-06 10:41:50 +0200
commit5a328a98fe3a74bb78c79ba41b9439e56b20a6c7 (patch)
tree5c15be4de6322abea7061442577f1d08bc5daa89 /basic
parent03632f0f8a84c3dc121b6ac864065266c6a1241e (diff)
Fix to build
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/ddectrl.cxx20
-rw-r--r--basic/source/runtime/ddectrl.hxx8
2 files changed, 14 insertions, 14 deletions
diff --git a/basic/source/runtime/ddectrl.cxx b/basic/source/runtime/ddectrl.cxx
index 3535f75bbf..c482b19e19 100644
--- a/basic/source/runtime/ddectrl.cxx
+++ b/basic/source/runtime/ddectrl.cxx
@@ -123,18 +123,18 @@ SbError SbiDdeControl::Initiate( const String& rService, const String& rTopic,
return 0;
}
-SbError SbiDdeControl::Terminate( sal_Int16 nChannel )
+SbError SbiDdeControl::Terminate( sal_uInt16 nChannel )
{
if (!nChannel || nChannel > aConvList.size())
return SbERR_DDE_NO_CHANNEL;
- std::vector<DdeConnection*> iterConv = aConvList.begin()+nChannel-1;
+ DdeConnection* pConv = aConvList[nChannel-1];
- if( *iterConv == DDE_FREECHANNEL )
+ if( pConv == DDE_FREECHANNEL )
return SbERR_DDE_NO_CHANNEL;
- delete *iterConv;
- *iterConv = DDE_FREECHANNEL;
+ delete pConv;
+ pConv = DDE_FREECHANNEL;
return 0L;
}
@@ -142,7 +142,7 @@ SbError SbiDdeControl::Terminate( sal_Int16 nChannel )
SbError SbiDdeControl::TerminateAll()
{
DdeConnection *conv;
- for (sal_Int16 nChannel = 0; nChannel < aConvList.size(); ++nChannel)
+ for (sal_uInt16 nChannel = 0; nChannel < aConvList.size(); ++nChannel)
{
conv = aConvList[nChannel];
@@ -155,7 +155,7 @@ SbError SbiDdeControl::TerminateAll()
return 0;
}
-SbError SbiDdeControl::Request( sal_Int16 nChannel, const String& rItem, String& rResult )
+SbError SbiDdeControl::Request( sal_uInt16 nChannel, const String& rItem, String& rResult )
{
if (!nChannel || nChannel > aConvList.size())
return SbERR_DDE_NO_CHANNEL;
@@ -172,14 +172,14 @@ SbError SbiDdeControl::Request( sal_Int16 nChannel, const String& rItem, String&
return GetLastErr( pConv );
}
-SbError SbiDdeControl::Execute( sal_Int16 nChannel, const String& rCommand )
+SbError SbiDdeControl::Execute( sal_uInt16 nChannel, const String& rCommand )
{
if (!nChannel || nChannel > aConvList.size())
return SbERR_DDE_NO_CHANNEL;
DdeConnection* pConv = aConvList[nChannel-1];
- if( conv == DDE_FREECHANNEL )
+ if( pConv == DDE_FREECHANNEL )
return SbERR_DDE_NO_CHANNEL;
DdeExecute aRequest( *pConv, rCommand, 30000 );
@@ -187,7 +187,7 @@ SbError SbiDdeControl::Execute( sal_Int16 nChannel, const String& rCommand )
return GetLastErr( pConv );
}
-SbError SbiDdeControl::Poke( sal_Int16 nChannel, const String& rItem, const String& rData )
+SbError SbiDdeControl::Poke( sal_uInt16 nChannel, const String& rItem, const String& rData )
{
if (!nChannel || nChannel > aConvList.size())
return SbERR_DDE_NO_CHANNEL;
diff --git a/basic/source/runtime/ddectrl.hxx b/basic/source/runtime/ddectrl.hxx
index 3b05549af7..d6ba9eddb6 100644
--- a/basic/source/runtime/ddectrl.hxx
+++ b/basic/source/runtime/ddectrl.hxx
@@ -52,11 +52,11 @@ public:
SbError Initiate( const String& rService, const String& rTopic,
sal_Int16& rnHandle );
- SbError Terminate( sal_Int16 nChannel );
+ SbError Terminate( sal_uInt16 nChannel );
SbError TerminateAll();
- SbError Request( sal_Int16 nChannel, const String& rItem, String& rResult );
- SbError Execute( sal_Int16 nChannel, const String& rCommand );
- SbError Poke( sal_Int16 nChannel, const String& rItem, const String& rData );
+ SbError Request( sal_uInt16 nChannel, const String& rItem, String& rResult );
+ SbError Execute( sal_uInt16 nChannel, const String& rCommand );
+ SbError Poke( sal_uInt16 nChannel, const String& rItem, const String& rData );
};
#endif