Changeset 715


Ignore:
Timestamp:
06/27/12 11:40:53 (12 months ago)
Author:
literalka
Message:

bugfix

Location:
trollforge/lastmeasure/server
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/server/lmresource.h

    r714 r715  
    243243 
    244244            for (int i = FindAssetIndex("/audio/", -1), n = 0; i < (int)NSTATICS; i = FindAssetIndex("/audio/", i)) 
    245                 data << "    audio[" << n << "] = '//" << host << staticnames[i] << "';\r\n"; 
     245                data << "    audio[" << n++ << "] = '//" << host << staticnames[i] << "';\r\n"; 
    246246 
    247247            data << 
     
    431431 
    432432        for (int i = FindAssetIndex(IMAGES_PREFIX, -1), n = 0; i < (int)NSTATICS; i = FindAssetIndex(IMAGES_PREFIX, i)) 
    433             ret << "    images[" << n << "] = '//" << host << staticnames[i] << "';\r\n"; 
     433            ret << "    images[" << n++ << "] = '//" << host << staticnames[i] << "';\r\n"; 
    434434 
    435435        ret << 
     
    482482        "    </object>\r\n" 
    483483        "</div>\r\n"; 
    484  
    485         return ret.str(); 
    486     } 
    487 /* }}} */ 
    488 /* {{{ Geolocation */ 
    489     static std::string GeoLocation() 
    490     { 
    491         std::stringstream ret(""); 
    492  
    493         ret << 
    494  
    495         "var latitude, longitude;\r\n" 
    496  
    497         "if (navigator.geolocation) {\r\n" 
    498         "    navigator.geolocation.getCurrentPosition( function (position) {\r\n" 
    499         "        latitude = (position.coords.latitude);\r\n" 
    500         "        longitude = (position.coords.longitude);\r\n" 
    501         "    });\r\n" 
    502         "}\r\n"; 
    503484 
    504485        return ret.str(); 
Note: See TracChangeset for help on using the changeset viewer.