summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 10:18:23 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 10:18:23 +0000
commit1d226d73fc163fec8a5f7cc5fbf16a6b0b1e2e82 (patch)
treef2dcdf9fc81d77571603bb1baca3b19da7558b87
parent19b9fb2d7dccc5a2e6345934167d7fdf9a8ce043 (diff)
INTEGRATION: CWS sb59 (1.8.14); FILE MERGED
2006/08/16 14:46:06 sb 1.8.14.1: #i67487# Made code warning-free (wntmsci10).
-rw-r--r--automation/source/testtool/cmdstrm.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/automation/source/testtool/cmdstrm.cxx b/automation/source/testtool/cmdstrm.cxx
index b13cda50e..9e8934729 100644
--- a/automation/source/testtool/cmdstrm.cxx
+++ b/automation/source/testtool/cmdstrm.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cmdstrm.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 00:38:17 $
+ * last change: $Author: obo $ $Date: 2006-10-12 11:18:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -162,7 +162,7 @@ String CmdStream::WandleKeyEventString( String aKeys )
}
}
aKeys.Insert(Result,nPos1);
- nPos1 += Result.Len();
+ nPos1 = nPos1 + Result.Len();
}
else
nPos1 = aKeys.Len() + 1;
@@ -222,8 +222,10 @@ void CmdStream::WriteSortedParams( SbxArray* rPar, BOOL IsKeyString )
break;
case SbxOBJECT: // whenever a control is passed. TabPage, MenuBar
{
- SbxProperty *pMember;
- if ( rPar->Get( i )->ISA( SbxObject ) && ( pMember = ((SbxObject*)rPar->Get( i ))->GetDfltProperty() ) )
+ SbxProperty *pMember = NULL;
+ if ( rPar->Get( i )->ISA( SbxObject ) )
+ pMember = ((SbxObject*)rPar->Get( i ))->GetDfltProperty();
+ if ( pMember != NULL )
{
if ( pMember->GetType() == SbxSTRING )
{