diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:21:47 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:21:47 +0000 |
commit | cf1360d6c688485448a217246db353d3cc72ccc9 (patch) | |
tree | 6ce095bb8f8dd64110e963e188472918f5a148f3 /automation/source/miniapp/testapp.cxx | |
parent | 706f0e09f3c7033b195a742b53945114a6f9b6a7 (diff) |
INTEGRATION: CWS warnings01 (1.4.10); FILE MERGED
2006/03/08 15:34:39 gh 1.4.10.3: remove wntmsci warnings
2006/03/02 08:08:43 gh 1.4.10.2: removing warnings for linux and solarisSparc and some windows
2006/02/02 09:19:55 gh 1.4.10.1: removed compiler warnings
Diffstat (limited to 'automation/source/miniapp/testapp.cxx')
-rw-r--r-- | automation/source/miniapp/testapp.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/automation/source/miniapp/testapp.cxx b/automation/source/miniapp/testapp.cxx index c8fc95d195fa..e2e877d272c3 100644 --- a/automation/source/miniapp/testapp.cxx +++ b/automation/source/miniapp/testapp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: testapp.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 19:21:22 $ + * last change: $Author: hr $ $Date: 2006-06-20 00:21:47 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -104,9 +104,7 @@ void MainWindow::FileOpen() if (Dlg.Execute() == RET_OK) { - - EditFileWindow * aEditWin = new EditFileWindow(this,Dlg.GetPath()); - + new EditFileWindow(this,Dlg.GetPath()); } } @@ -137,7 +135,7 @@ void MainWindow::FileExit() } -void MainWindow::Tree(GHEditWindow *aEditWin, Window *pBase, int Indent) +void MainWindow::Tree(GHEditWindow *aEditWin, Window *pBase, USHORT Indent) { String sIndent,aText; sIndent.Expand(5*Indent); @@ -148,7 +146,7 @@ void MainWindow::Tree(GHEditWindow *aEditWin, Window *pBase, int Indent) aEditWin->AddText(String(sIndent).AppendAscii("Text: ").Append(aText).AppendAscii("\n")); aEditWin->AddText(String(sIndent).AppendAscii("Help: ").Append(String::CreateFromInt64(pBase->GetHelpId())).AppendAscii(":").Append(pBase->GetQuickHelpText()).AppendAscii(":").Append(pBase->GetHelpText()).AppendAscii("\n")); - int i; + USHORT i; for (i = 0 ; i < pBase->GetChildCount() ; i++) { Tree(aEditWin,pBase->GetChild(i),Indent+1); @@ -265,6 +263,8 @@ void MyApp::Property( ApplicationProperty& rProp ) USHORT MyDispatcher::ExecuteFunction( USHORT nSID, SfxPoolItem** ppArgs, USHORT nMode) { + (void) ppArgs; /* avoid warning about unused parameter */ + (void) nMode; /* avoid warning about unused parameter */ switch (nSID) { |