summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Charts
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Charts')
-rw-r--r--odk/examples/DevelopersGuide/Charts/CalcHelper.java2
-rw-r--r--odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java6
-rw-r--r--odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/CalcHelper.java b/odk/examples/DevelopersGuide/Charts/CalcHelper.java
index fa02dc398ac0..ca9ea94438d3 100644
--- a/odk/examples/DevelopersGuide/Charts/CalcHelper.java
+++ b/odk/examples/DevelopersGuide/Charts/CalcHelper.java
@@ -303,7 +303,7 @@ public class CalcHelper
}
else
{
- aFormula = new String( "=" );
+ aFormula = "=";
if( nCol % 2 == 0 )
aFormula += "SIN";
else
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";
}
diff --git a/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java b/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java
index 60ac0b0d5b26..30700ed90faf 100644
--- a/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java
+++ b/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java
@@ -159,7 +159,7 @@ public class ListenAtCalcRangeInDraw implements XChartDataChangeEventListener
public void chartDataChanged( ChartDataChangeEvent aEvent )
{
// update subtitle
- String aTitle = new String( "Last Update: " + new java.util.Date( System.currentTimeMillis() ));
+ String aTitle = "Last Update: " + new java.util.Date();
try
{