[fdo-commits] r2561 - trunk/Providers/GDAL/Src/UnitTest

svn_fdo at osgeo.org svn_fdo at osgeo.org
Tue Feb 20 14:03:02 EST 2007


Author: warmerdam
Date: 2007-02-20 14:03:02 -0500 (Tue, 20 Feb 2007)
New Revision: 2561

Modified:
   trunk/Providers/GDAL/Src/UnitTest/RfpTestJpg.cpp
   trunk/Providers/GDAL/Src/UnitTest/RfpTestPng.cpp
Log:
use static_cast on linux (ticket #12)

Modified: trunk/Providers/GDAL/Src/UnitTest/RfpTestJpg.cpp
===================================================================
--- trunk/Providers/GDAL/Src/UnitTest/RfpTestJpg.cpp	2007-02-20 18:57:08 UTC (rev 2560)
+++ trunk/Providers/GDAL/Src/UnitTest/RfpTestJpg.cpp	2007-02-20 19:03:02 UTC (rev 2561)
@@ -50,7 +50,11 @@
 	connection->Open();
 
 	FdoICommand* cmd = connection->CreateCommand(FdoCommandType_Select);
+#ifndef WIN32
+	FdoPtr<FdoISelect> cmdSelect = static_cast<FdoISelect*>(cmd);
+#else
 	FdoPtr<FdoISelect> cmdSelect = dynamic_cast<FdoISelect*>(cmd);
+#endif
 	cmdSelect->SetFeatureClassName(L"default");
 	FdoPtr<FdoIFeatureReader> featureReader = cmdSelect->Execute();
 
@@ -107,7 +111,11 @@
 	    connection->Open();
 
 	    FdoICommand* cmd = connection->CreateCommand(FdoCommandType_Select);
+#ifndef WIN32
+	    FdoPtr<FdoISelect> cmdSelect = static_cast<FdoISelect*>(cmd);
+#else
 	    FdoPtr<FdoISelect> cmdSelect = dynamic_cast<FdoISelect*>(cmd);
+#endif
 	    cmdSelect->SetFeatureClassName(L"default");
 	    FdoPtr<FdoIFeatureReader> featureReader = cmdSelect->Execute();
 

Modified: trunk/Providers/GDAL/Src/UnitTest/RfpTestPng.cpp
===================================================================
--- trunk/Providers/GDAL/Src/UnitTest/RfpTestPng.cpp	2007-02-20 18:57:08 UTC (rev 2560)
+++ trunk/Providers/GDAL/Src/UnitTest/RfpTestPng.cpp	2007-02-20 19:03:02 UTC (rev 2561)
@@ -52,7 +52,11 @@
 	    connection->Open();
 
 	    FdoICommand* cmd = connection->CreateCommand(FdoCommandType_Select);
+#ifndef WIN32
+	    FdoPtr<FdoISelect> cmdSelect = static_cast<FdoISelect*>(cmd);
+#else
 	    FdoPtr<FdoISelect> cmdSelect = dynamic_cast<FdoISelect*>(cmd);
+#endif
 	    cmdSelect->SetFeatureClassName(L"default");
 	    FdoPtr<FdoIFeatureReader> featureReader = cmdSelect->Execute();
 
@@ -116,7 +120,11 @@
 	    connection->Open();
 
 	    FdoICommand* cmd = connection->CreateCommand(FdoCommandType_Select);
+#ifndef WIN32
+	    FdoPtr<FdoISelect> cmdSelect = static_cast<FdoISelect*>(cmd);
+#else
 	    FdoPtr<FdoISelect> cmdSelect = dynamic_cast<FdoISelect*>(cmd);
+#endif
 	    cmdSelect->SetFeatureClassName(L"default");
 	    FdoPtr<FdoIFeatureReader> featureReader = cmdSelect->Execute();
 



More information about the fdo-commits mailing list