diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index 6e4bcdb2a69..c7f9a4ab31e 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -742,7 +742,7 @@ namespace CGAL { // This directory is either defined in the environement variable CGAL_DATA_DIR, // otherwise it is taken from the constant CGAL_DATA_DIR (defined in CMake), // otherwise it is empty (and thus returns filename unmodified). -inline std::string get_data_file_path(const char* filename) +inline std::string data_file_path(const char* filename) { const char *cgal_dir=std::getenv("CGAL_DATA_DIR"); #ifdef CGAL_DATA_DIR diff --git a/Linear_cell_complex/examples/Linear_cell_complex/voronoi_2.cpp b/Linear_cell_complex/examples/Linear_cell_complex/voronoi_2.cpp index 31943ccc5b3..84e22fc0b35 100644 --- a/Linear_cell_complex/examples/Linear_cell_complex/voronoi_2.cpp +++ b/Linear_cell_complex/examples/Linear_cell_complex/voronoi_2.cpp @@ -105,7 +105,7 @@ int main(int narg, char** argv) std::string filename; if ( narg==1 ) { - filename=CGAL::get_data_file_path("points_2/points_2"); + filename=CGAL::data_file_path("points_2/points_2"); std::cout<<"No filename given: use "<