summaryrefslogtreecommitdiff
path: root/qadevOOo/runner
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r--qadevOOo/runner/convwatch/MSOfficePrint.java2
-rw-r--r--qadevOOo/runner/convwatch/ReportDesignerTest.java2
-rw-r--r--qadevOOo/runner/graphical/MSOfficePostscriptCreator.java2
-rw-r--r--qadevOOo/runner/helper/ContextMenuInterceptor.java26
4 files changed, 16 insertions, 16 deletions
diff --git a/qadevOOo/runner/convwatch/MSOfficePrint.java b/qadevOOo/runner/convwatch/MSOfficePrint.java
index aa881b5087cf..3b3ed466c895 100644
--- a/qadevOOo/runner/convwatch/MSOfficePrint.java
+++ b/qadevOOo/runner/convwatch/MSOfficePrint.java
@@ -258,7 +258,7 @@ public class MSOfficePrint
{
aStr = "\"\"";
}
- aList[i] = new String(aStr);
+ aList[i] = aStr;
}
// This is really the latest point where we can check if we are running within windows environment
diff --git a/qadevOOo/runner/convwatch/ReportDesignerTest.java b/qadevOOo/runner/convwatch/ReportDesignerTest.java
index ea1a2d8840fe..36b513ee8a7b 100644
--- a/qadevOOo/runner/convwatch/ReportDesignerTest.java
+++ b/qadevOOo/runner/convwatch/ReportDesignerTest.java
@@ -314,7 +314,7 @@ public class ReportDesignerTest extends ComplexTestCase {
// sAppExecutionCommand = utils.replaceAll13(sAppExecutionCommand, "${USERNAME}", sUser);
checkIfOfficeExists(sAppExecutionCommand);
- param.put("AppExecutionCommand", new String(sAppExecutionCommand));
+ param.put("AppExecutionCommand", sAppExecutionCommand);
// System.exit(1);
diff --git a/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java b/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
index 8206f8edfba5..a64c04792f8a 100644
--- a/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
+++ b/qadevOOo/runner/graphical/MSOfficePostscriptCreator.java
@@ -341,7 +341,7 @@ public class MSOfficePostscriptCreator implements IOffice
{
aStr = "\"\"";
}
- aList[i] = new String(aStr);
+ aList[i] = aStr;
}
// This is really the latest point where we can check if we are running within windows environment
diff --git a/qadevOOo/runner/helper/ContextMenuInterceptor.java b/qadevOOo/runner/helper/ContextMenuInterceptor.java
index 9ff389878d23..87844522865d 100644
--- a/qadevOOo/runner/helper/ContextMenuInterceptor.java
+++ b/qadevOOo/runner/helper/ContextMenuInterceptor.java
@@ -63,9 +63,9 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTriggerContainer" ));
// intialize root menu entry "Help"
- xRootMenuEntry.setPropertyValue( "Text", new String( "Help" ));
- xRootMenuEntry.setPropertyValue( "CommandURL", new String( "slot:5410" ));
- xRootMenuEntry.setPropertyValue( "HelpURL", new String( "5410" ));
+ xRootMenuEntry.setPropertyValue( "Text", "Help" );
+ xRootMenuEntry.setPropertyValue( "CommandURL", "slot:5410" );
+ xRootMenuEntry.setPropertyValue( "HelpURL", "5410" );
xRootMenuEntry.setPropertyValue( "SubContainer", xSubMenuContainer );
// create menu entries for the new sub menu
@@ -74,9 +74,9 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
XPropertySet xMenuEntry = UnoRuntime.queryInterface(
XPropertySet.class, xMenuElementFactory.createInstance(
"com.sun.star.ui.ActionTrigger" ));
- xMenuEntry.setPropertyValue( "Text", new String( "Content" ));
- xMenuEntry.setPropertyValue( "CommandURL", new String( "slot:5401" ));
- xMenuEntry.setPropertyValue( "HelpURL", new String( "5401" ));
+ xMenuEntry.setPropertyValue( "Text", "Content" );
+ xMenuEntry.setPropertyValue( "CommandURL", "slot:5401" );
+ xMenuEntry.setPropertyValue( "HelpURL", "5401" );
// insert menu entry to sub menu
xSubMenuContainer.insertByIndex( 0, xMenuEntry );
@@ -86,9 +86,9 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
xMenuEntry = UnoRuntime.queryInterface(
XPropertySet.class,
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger" ));
- xMenuEntry.setPropertyValue( "Text", new String( "Help Agent" ));
- xMenuEntry.setPropertyValue( "CommandURL", new String( "slot:5962" ));
- xMenuEntry.setPropertyValue( "HelpURL", new String( "5962" ));
+ xMenuEntry.setPropertyValue( "Text", "Help Agent" );
+ xMenuEntry.setPropertyValue( "CommandURL", "slot:5962" );
+ xMenuEntry.setPropertyValue( "HelpURL", "5962" );
// insert menu entry to sub menu
xSubMenuContainer.insertByIndex( 1, xMenuEntry );
@@ -97,9 +97,9 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
xMenuEntry = UnoRuntime.queryInterface(
XPropertySet.class,
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger" ));
- xMenuEntry.setPropertyValue( "Text", new String( "Tips" ));
- xMenuEntry.setPropertyValue( "CommandURL", new String( "slot:5404" ));
- xMenuEntry.setPropertyValue( "HelpURL", new String( "5404" ));
+ xMenuEntry.setPropertyValue( "Text", "Tips" );
+ xMenuEntry.setPropertyValue( "CommandURL", "slot:5404" );
+ xMenuEntry.setPropertyValue( "HelpURL", "5404" );
// insert menu entry to sub menu
xSubMenuContainer.insertByIndex( 2, xMenuEntry );
@@ -128,4 +128,4 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
return ContextMenuInterceptorAction.IGNORED;
}
-} \ No newline at end of file
+}