[Libreoffice-commits] core.git: sc/inc sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Thu Mar 20 06:50:11 PDT 2014


 sc/inc/formulagroup.hxx                  |    3 +++
 sc/source/core/opencl/formulagroupcl.cxx |   26 ++++++++++++++------------
 sc/source/core/tool/formulagroup.cxx     |    8 ++++++++
 3 files changed, 25 insertions(+), 12 deletions(-)

New commits:
commit 393068beecdf1e35c61c6df3aaa5c3e6e528992a
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu Mar 20 09:44:02 2014 -0400

    Some cosmetics.
    
    Change-Id: I4825d94c58d8cfb245f110b7f46397c2724436a3

diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx
index bb0e0b4..d3b05e7 100644
--- a/sc/inc/formulagroup.hxx
+++ b/sc/inc/formulagroup.hxx
@@ -74,6 +74,9 @@ struct FormulaGroupContext : boost::noncopyable
 
     void ensureStrArray( ColArray& rColArray, size_t nArrayLen );
     void ensureNumArray( ColArray& rColArray, size_t nArrayLen );
+
+    FormulaGroupContext();
+    ~FormulaGroupContext();
 };
 
 /**
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 00909be..80f11ed 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -3372,24 +3372,23 @@ DynamicKernel* DynamicKernel::create(ScDocument& /* rDoc */,
             sal_uInt8 nParamCount =  pCur->GetParamCount();
             for (sal_uInt8 i = 0; i < nParamCount; i++)
             {
-                FormulaToken* m_TempFormula = aTokenList.back();
+                FormulaToken* pTempFormula = aTokenList.back();
                 aTokenList.pop_back();
-                if(m_TempFormula->GetOpCode()!=ocPush)
+                if (pTempFormula->GetOpCode() != ocPush)
                 {
-                    if (aHashMap.find(m_TempFormula)==aHashMap.end())
+                    if (aHashMap.find(pTempFormula)==aHashMap.end())
                         return NULL;
-                    pCurNode->Children.push_back(aHashMap[m_TempFormula]);
+                    pCurNode->Children.push_back(aHashMap[pTempFormula]);
                 }
                 else
                 {
-                    FormulaTreeNodeRef m_ChildTreeNode =
+                    FormulaTreeNodeRef pChildTreeNode =
                       FormulaTreeNodeRef(
-                               new FormulaTreeNode(m_TempFormula));
-                    pCurNode->Children.push_back(m_ChildTreeNode);
+                               new FormulaTreeNode(pTempFormula));
+                    pCurNode->Children.push_back(pChildTreeNode);
                 }
             }
-            std::reverse(pCurNode->Children.begin(),
-                                pCurNode->Children.end());
+            std::reverse(pCurNode->Children.begin(), pCurNode->Children.end());
             aHashMap[pCur] = pCurNode;
         }
         aTokenList.push_back(pCur);
@@ -3404,11 +3403,13 @@ DynamicKernel* DynamicKernel::create(ScDocument& /* rDoc */,
         return NULL;
 
     // OpenCL source code generation and kernel compilation
-    try {
+    try
+    {
         pDynamicKernel->CodeGen();
         pDynamicKernel->CreateKernel();
     }
-    catch (const UnhandledToken &ut) {
+    catch (const UnhandledToken &ut)
+    {
         std::cerr << "\nDynamic formual compiler: unhandled token: ";
         std::cerr << ut.mMessage << " at ";
         std::cerr << ut.mFile << ":" << ut.mLineNumber << "\n";
@@ -3419,7 +3420,8 @@ DynamicKernel* DynamicKernel::create(ScDocument& /* rDoc */,
         return NULL;
 #endif
     }
-    catch (...) {
+    catch (...)
+    {
         std::cerr << "Dynamic formula compiler: unhandled compiler error\n";
         return NULL;
     }
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index d680235..fddc356 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -129,6 +129,14 @@ void FormulaGroupContext::ensureNumArray( ColArray& rColArray, size_t nArrayLen
     rColArray.mpNumArray = &maNumArrays.back();
 }
 
+FormulaGroupContext::FormulaGroupContext()
+{
+}
+
+FormulaGroupContext::~FormulaGroupContext()
+{
+}
+
 namespace {
 
 /**


More information about the Libreoffice-commits mailing list