Anonymous avatar Anonymous committed 068d270

#i10000# get rid of warnings on windows

Comments (0)

Files changed (5)

sc/source/core/data/global.cxx

     while (p < pStop)
     {
         if (*p == cChar && !bQuoted)
-            return p - pStart;
+            return xub_StrLen(p - pStart);
         else if (*p == cQuote)
         {
             if (!bQuoted)

sc/source/core/tool/compiler.cxx

                 aEndTabName, nFlags, true, pExternalLinks );
         if (!p || p == pStart)
             return false;
-        i = p - pStart;
+        i = xub_StrLen(p - pStart);
         cPrev = *(p-1);
     }
     for ( ; i < nLen; ++i, ++p)

sc/source/core/tool/token.cxx

                                     lcl_ExternalRefToCalc( aComplRef.Ref1, aApiCRef.Reference1 );
                                     lcl_ExternalRefToCalc( aComplRef.Ref2, aApiCRef.Reference2 );
                                     // NOTE: This assumes that cached sheets are in consecutive order!
-                                    aComplRef.Ref2.nTab = aComplRef.Ref1.nTab + (aApiCRef.Reference2.Sheet - aApiCRef.Reference1.Sheet);
+                                    aComplRef.Ref2.nTab = aComplRef.Ref1.nTab + SCsTAB(aApiCRef.Reference2.Sheet - aApiCRef.Reference1.Sheet);
                                     AddExternalDoubleReference( nFileId, aTabName, aComplRef );
                                 }
                                 else

sc/source/ui/app/inputhdl.cxx

                         if( ppFDesc->getFunctionName().getLength() )
                         {
                             nArgPos = aHelper.GetArgStart( aSelText, nNextFStart, 0 );
-                            nArgs = ppFDesc->getParameterCount();
+                            nArgs = (USHORT)ppFDesc->getParameterCount();
 
                             USHORT nActive = 0;
                             USHORT nCount = 0;
                             {
                                 for( USHORT i=0; i < nArgs; i++ )
                                 {
-                                    xub_StrLen nLength=aArgs[i].getLength();
+                                    xub_StrLen nLength= (USHORT)aArgs[i].getLength();
                                     if( nArgPos <= aSelText.Len()-1 )
                                     {
                                         nActive = i+1;
                 {
                     {
                         nArgPos = aHelper.GetArgStart( aFormula, nNextFStart, 0 );
-                        nArgs = ppFDesc->getParameterCount();
+                        nArgs = (USHORT)ppFDesc->getParameterCount();
 
                         USHORT nActive = 0;
                         USHORT nCount = 0;
                         {
                             for( USHORT i=0; i < nArgs; i++ )
                             {
-                                xub_StrLen nLength=aArgs[i].getLength();
+                                xub_StrLen nLength= (USHORT)aArgs[i].getLength();
                                 if( nArgPos <= aFormula.Len()-1 )
                                 {
                                     nActive = i+1;

sc/source/ui/docshell/externalrefmgr.cxx

 
     size_t nStartDist = ::std::distance( itrBeg, itrStartTab);
     size_t nEndDist = ::std::distance( itrBeg, itrEndTab);
-    return nStartDist <= nEndDist ? nEndDist - nStartDist + 1 : -(nStartDist - nEndDist + 1);
+    return nStartDist <= nEndDist ? (SCsTAB)(nEndDist - nStartDist + 1) : -(SCsTAB)(nStartDist - nEndDist + 1);
 }
 
 void ScExternalRefCache::getAllNumberFormats(vector<sal_uInt32>& rNumFmts) const
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.