[mapguide-commits] r1237 - trunk/MgDev/Server/src/Services/Mapping

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Mar 15 12:06:39 EDT 2007


Author: traianstanev
Date: 2007-03-15 12:06:39 -0400 (Thu, 15 Mar 2007)
New Revision: 1237

Modified:
   trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.cpp
   trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.h
Log:
API cleanup (const pointer returned from GetImageData).

Modified: trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.cpp	2007-03-15 16:04:29 UTC (rev 1236)
+++ trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.cpp	2007-03-15 16:06:39 UTC (rev 1237)
@@ -108,7 +108,7 @@
     return ret;
 }
 
-unsigned char* SEMgSymbolManager::GetImageData(const wchar_t* resource, int& length)
+const unsigned char* SEMgSymbolManager::GetImageData(const wchar_t* resource, int& length)
 {
     STRING uniqueName = STRING(resource);
     unsigned char* ret = m_mImageCache[uniqueName];

Modified: trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.h
===================================================================
--- trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.h	2007-03-15 16:04:29 UTC (rev 1236)
+++ trunk/MgDev/Server/src/Services/Mapping/SEMgSymbolManager.h	2007-03-15 16:06:39 UTC (rev 1237)
@@ -40,7 +40,7 @@
     virtual ~SEMgSymbolManager();
 
     virtual SymbolDefinition* GetSymbolDefinition(const wchar_t* resource);
-    virtual unsigned char* GetImageData(const wchar_t* resource, int& length);
+    virtual const unsigned char* GetImageData(const wchar_t* resource, int& length);
 
 private:
     MgResourceService* m_svcResource;



More information about the mapguide-commits mailing list