Commits

Eike Rathke [er]  committed c1ac4c9

calc55: dumb ass MSVC, ScCompiler::IsOpCode::FunctionName : default constructor could not be generated; maybe moving the struct to file scope helps?

  • Participants
  • Parent commits 70399a5

Comments (0)

Files changed (1)

File sc/source/core/tool/compiler.cxx

     ssStop
 };
 
+// ODFF names that are not written in the current mapping but to be recognized. 
+// New names will be written in a future relase, then exchange (!) with the 
+// names in formula/source/core/resource/core_resource.src to be able to still 
+// read the old names as well.
+struct FunctionName
+{
+    const sal_Char* pName;
+    const OpCode    eOp;
+};
+static const FunctionName aOdffAliases[] = {
+    // Renamed old names:
+    // XXX none yet.
+    // Renamed new names:
+    { "BINOM.DIST.RANGE",   ocB },      // B -> BINOM.DIST.RANGE
+    { "LEGACY.TDIST",       ocTDist }   // TDIST -> LEGACY.TDIST
+};
+static const size_t nOdffAliases = sizeof(aOdffAliases) / sizeof(aOdffAliases[0]);
+
 static const sal_Char* pInternal[ 1 ] = { "TTT" };
 
 using namespace ::com::sun::star::i18n;
     }
     else if (mxSymbols->isODFF())
     {
-        // ODFF names that are not written in the current mapping but to be 
-        // recognized. New names will be written in a future relase, then 
-        // exchange (!) with the names in 
-        // formula/source/core/resource/core_resource.src to be able to still 
-        // read the old names as well.
-        struct FunctionName
-        {
-            const sal_Char* pName;
-            const OpCode    eOp;
-        };
-        static const FunctionName aOdffAliases[] = {
-            // Renamed old names:
-            // XXX none yet.
-            // Renamed new names:
-            { "BINOM.DIST.RANGE",   ocB },      // B -> BINOM.DIST.RANGE
-            { "LEGACY.TDIST",       ocTDist }   // TDIST -> LEGACY.TDIST
-        };
-        const size_t nOdffAliases = sizeof(aOdffAliases) / sizeof(aOdffAliases[0]);
         for (size_t i=0; i<nOdffAliases; ++i)
         {
             if (rName.EqualsIgnoreCaseAscii( aOdffAliases[i].pName))