summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java')
-rw-r--r--odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java b/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
index 8d15ff9d95d5..31b3cf888598 100644
--- a/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
+++ b/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
@@ -283,7 +283,7 @@ public class JavaSampleChartAddIn extends WeakBase implements
// XServiceName
public String getServiceName() throws RuntimeException
{
- return new String( smServiceName );
+ return smServiceName;
}
// XServiceInfo
@@ -312,7 +312,7 @@ public class JavaSampleChartAddIn extends WeakBase implements
// XDiagram
public String getDiagramType() throws RuntimeException
{
- return new String( smServiceName );
+ return smServiceName;
}
public XPropertySet getDataRowProperties( int nRow )
@@ -349,7 +349,7 @@ public class JavaSampleChartAddIn extends WeakBase implements
// XShapeDescriptor : XShape : XDiagram
public String getShapeType() throws RuntimeException
{
- return new String( "com.sun.star.comp.Chart.JavaSampleDiagramShape" );
+ return "com.sun.star.comp.Chart.JavaSampleDiagramShape";
}