diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-03 16:26:05 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-22 18:07:28 -0400 |
commit | ae7901abd638df353ffb60052d7aceb44a08cfc4 (patch) | |
tree | c1c99cc1ad6d0f43b2cdb54042aeff912063de59 | |
parent | 0ae2d01cb86fc9c236be88530eba88c06a9511f4 (diff) |
GetNameAsString() identical to GetName(). Remove this and use GetName().
Change-Id: I26dce2dd11792ee118e78d23d652a5feb0789830
-rw-r--r-- | sc/source/core/opencl/op_statistical.cxx | 6 | ||||
-rw-r--r-- | sc/source/core/opencl/opbase.hxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx index d2ece0d82d27..839b46c3c2c9 100644 --- a/sc/source/core/opencl/op_statistical.cxx +++ b/sc/source/core/opencl/op_statistical.cxx @@ -5661,14 +5661,14 @@ void OpMedian::GenSlidingWindowFunction( ss << " int nSize =endFlag- startFlag ;\n"; ss << " if (nSize & 1)\n"; ss << " {\n"; - ss << " tmp = "<<vSubArguments[0]->GetNameAsString(); + ss << " tmp = "<<vSubArguments[0]->GetName(); ss << " [startFlag+nSize/2];\n"; ss << " }\n"; ss << " else\n"; ss << " {\n"; - ss << " tmp =("<<vSubArguments[0]->GetNameAsString(); + ss << " tmp =("<<vSubArguments[0]->GetName(); ss << " [startFlag+nSize/2]+"; - ss << vSubArguments[0]->GetNameAsString(); + ss << vSubArguments[0]->GetName(); ss << " [startFlag+nSize/2-1])/2;\n"; ss << " }\n"; ss <<" return tmp;\n"; diff --git a/sc/source/core/opencl/opbase.hxx b/sc/source/core/opencl/opbase.hxx index 497af9471fce..ea8937897919 100644 --- a/sc/source/core/opencl/opbase.hxx +++ b/sc/source/core/opencl/opbase.hxx @@ -88,7 +88,6 @@ class DynamicKernelArgument : boost::noncopyable public: DynamicKernelArgument( const std::string& s, FormulaTreeNodeRef ft ); - const std::string& GetNameAsString() const { return mSymName; } /// Generate declaration virtual void GenDecl( std::stringstream& ss ) const = 0; @@ -145,7 +144,6 @@ class VectorRef : public DynamicKernelArgument public: VectorRef( const std::string& s, FormulaTreeNodeRef ft, int index = 0 ); - const std::string& GetNameAsString() const { return mSymName; } /// Generate declaration virtual void GenDecl( std::stringstream& ss ) const SAL_OVERRIDE; /// When declared as input to a sliding window function |