Skip to content

Commit

Permalink
Fixed typos, fixed mixed indentation, removerd whitespace
Browse files Browse the repository at this point in the history
(cherry picked from commit f667543)
  • Loading branch information
Pilot-Pirx committed Oct 3, 2023
1 parent 707a839 commit 1784980
Show file tree
Hide file tree
Showing 11 changed files with 3,341 additions and 3,330 deletions.
18 changes: 10 additions & 8 deletions main/automation/source/app/testbasi.cxx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/**************************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
*************************************************************/


Expand Down Expand Up @@ -81,7 +81,7 @@ TTBasic::TTBasic() : MyBasic()
pTTO->SetWriteStringHdl( GenWriteStringHdl() );
pTTO->SetCErrorHdl( LINK( this, TTBasic, CErrorImpl ) );

StartListeningTT( pTTO->GetTTBroadcaster() );
StartListeningTT( pTTO->GetTTBroadcaster() );

pTestObject = pTTO;
pTestObject->SetFlag( SBX_EXTSEARCH );
Expand Down Expand Up @@ -125,7 +125,7 @@ sal_Bool TTBasic::Compile( SbModule* p )
return MyBasic::Compile( p );
}

const String TTBasic::GetSpechialErrorText()
const String TTBasic::GetSpecialErrorText()
{
String nErrorText;
if ( pTestObject && IS_ERROR() && GetErrorCode() == GET_ERROR()->nError )
Expand All @@ -144,9 +144,9 @@ const String TTBasic::GetSpechialErrorText()
void TTBasic::ReportRuntimeError( AppBasEd *pEditWin )
{
SbxVariableRef aDummy = new SbxVariable;
aDummy->SetUserData( 24 ); // ID_MaybeAddErr
aDummy->SetUserData( 24 ); // ID_MaybeAddErr
((TestToolObj*)pTestObject)->Notify( pTestObject->GetBroadcaster(), SbxHint( SBX_HINT_DATAWANTED, aDummy ) );
aDummy->SetUserData( 18 ); // ID_ExceptLog
aDummy->SetUserData( 18 ); // ID_ExceptLog
((TestToolObj*)pTestObject)->Notify( pTestObject->GetBroadcaster(), SbxHint( SBX_HINT_DATAWANTED, aDummy ) );
MyBasic::ReportRuntimeError( pEditWin );
}
Expand All @@ -155,3 +155,5 @@ void TTBasic::DebugFindNoErrors( sal_Bool bDebugFindNoErrors )
{
((TestToolObj*)pTestObject)->DebugFindNoErrors( bDebugFindNoErrors );
}

/* vim: set noet sw=4 ts=4: */
12 changes: 7 additions & 5 deletions main/automation/source/app/testbasi.hxx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/**************************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
*************************************************************/


Expand Down Expand Up @@ -50,11 +50,13 @@ public:

void LoadIniFile();
SbTextType GetSymbolType( const String &Symbol, sal_Bool bWasTTControl ); // Besimmt den erweiterten Symboltyp für das Syntaxhighlighting
virtual const String GetSpechialErrorText();
virtual const String GetSpecialErrorText();
virtual void ReportRuntimeError( AppBasEd *pEditWin );
virtual void DebugFindNoErrors( sal_Bool bDebugFindNoErrors );
};

SV_DECL_IMPL_REF(TTBasic)

#endif

/* vim: set noet sw=4 ts=4: */

0 comments on commit 1784980

Please sign in to comment.