diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-09 08:45:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-13 09:37:12 +0200 |
commit | 26ec80f47df1b32c5e1ae8c96d597ef8c90fee86 (patch) | |
tree | 11b53e701f50ff170552054ef7d23136cd4710b6 /hwpfilter | |
parent | b5f5a386504e320b022f8609c9c36652ae2d3d18 (diff) |
loplugin:staticmethods
Change-Id: I33a8ca28b0c3bf1c31758d93238e74927bebde9c
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/cspline.cxx | 8 | ||||
-rw-r--r-- | hwpfilter/source/hwpreader.hxx | 4 | ||||
-rw-r--r-- | hwpfilter/source/solver.h | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/hwpfilter/source/cspline.cxx b/hwpfilter/source/cspline.cxx index 06dde6cf3176..90f8c1c3520d 100644 --- a/hwpfilter/source/cspline.cxx +++ b/hwpfilter/source/cspline.cxx @@ -126,8 +126,8 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c, h[i] = x[i+1]-x[i]; mgcLinearSystemD sys; - double** mat = sys.NewMatrix(N+1); // guaranteed to be zeroed memory - c = sys.NewVector(N+1); // guaranteed to be zeroed memory + double** mat = mgcLinearSystemD::NewMatrix(N+1); // guaranteed to be zeroed memory + c = mgcLinearSystemD::NewVector(N+1); // guaranteed to be zeroed memory // c[0] - c[N] = 0 mat[0][0] = +1.0f; @@ -152,7 +152,7 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c, c[N] = 3.0f*((a[1]-a[0])/h[0] - (a[0]-a[N-1])/h[N-1]); // solve for c[0] through c[N] - sys.Solve(N+1,mat,c); + mgcLinearSystemD::Solve(N+1,mat,c); const double oneThird = 1.0/3.0; b = new double[N]; @@ -164,7 +164,7 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c, } delete[] h; - sys.DeleteMatrix(N+1,mat); + mgcLinearSystemD::DeleteMatrix(N+1,mat); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx index 95252d95824c..c3ef10af05b7 100644 --- a/hwpfilter/source/hwpreader.hxx +++ b/hwpfilter/source/hwpreader.hxx @@ -147,8 +147,8 @@ private: void makeTableStyle(Table *); void parseCharShape(CharShape *); void parseParaShape(ParaShape *); - char* getTStyleName(int, char *); - char* getPStyleName(int, char *); + static char* getTStyleName(int, char *); + static char* getPStyleName(int, char *); }; class HwpImportFilter : public WeakImplHelper4< XFilter, XImporter, XServiceInfo, XExtendedFilterDetection > diff --git a/hwpfilter/source/solver.h b/hwpfilter/source/solver.h index 0b1fffd5301e..8aba94a1125b 100644 --- a/hwpfilter/source/solver.h +++ b/hwpfilter/source/solver.h @@ -25,11 +25,11 @@ class mgcLinearSystemD public: mgcLinearSystemD() {;} - double** NewMatrix (int N); - void DeleteMatrix (int N, double** A); - double* NewVector (int N); + static double** NewMatrix (int N); + static void DeleteMatrix (int N, double** A); + static double* NewVector (int N); - int Solve (int N, double** A, double* b); + static int Solve (int N, double** A, double* b); // Input: // A[N][N] coefficient matrix, entries are A[row][col] // b[N] vector, entries are b[row] |