Fixed bug #17677: use a thread_local to avoid returning a dangling pointer

- Fixes clang -Wreturn-stack-address warning.
- Added std::string versions of the methods
Status Job ID Name Coverage
  External
passed cdash

passed ghostflow-branch-check-master

passed vtk@master-adora-linux-shared-release+cuda+gcc+mpi+optix+python2+tbb+vtkm

passed vtk@master-bigmac-osx-shared-debug+adios2+clang+python2+vtkm

failed vtk@master-dejagore-linux-shared-release+cuda+gcc+mpi+openmp+python2+vtkm

failed vtk@master-duma-linux-shared-release+osmesa+ospray

running vtk@master-eeloo-linux-shared-release+adios2+extdeps+java+mpi+python3+qt+tbb+vtkm

1030:49:28

passed vtk@master-eeloo-linux-shared-release+mpi+nogl

passed vtk@master-luigi-linux-shared-release+mpi+python2+tbb

passed vtk@master-mun-windows-shared-release+kits+mpi+python3+qt+tbb

passed vtk@master-mun-windows-shared-release+mpi+python3+tbb+vtkm

failed vtk@master-mun-windows-static-release+mpi+qt+tbb

passed vtk@master-taanab-linux-shared-release+adios2+mpi+python2

passed vtk@master-trey-osx-shared-release+python3+qt

passed cdash

passed vtk@master-adora-linux-shared-release+cuda+gcc+mpi+optix+python2+tbb+vtkm

passed vtk@master-adora-linux-shared-release+cuda+gcc+mpi+optix+python2+tbb+vtkm

00:41:06

passed vtk@master-adora-linux-shared-release+cuda+gcc+mpi+optix+python2+tbb+vtkm

00:05:27

passed vtk@master-bigmac-osx-shared-debug+adios2+clang+python2+vtkm

00:10:57

passed vtk@master-bigmac-osx-shared-debug+adios2+clang+python2+vtkm

00:41:07

passed vtk@master-bigmac-osx-shared-debug+adios2+clang+python2+vtkm

failed vtk@master-dejagore-linux-shared-release+cuda+gcc+mpi+openmp+python2+vtkm

failed vtk@master-dejagore-linux-shared-release+cuda+gcc+mpi+openmp+python2+vtkm

01:53:35

failed vtk@master-dejagore-linux-shared-release+cuda+gcc+mpi+openmp+python2+vtkm

failed vtk@master-dejagore-linux-shared-release+cuda+gcc+mpi+openmp+python2+vtkm

00:28:04

failed vtk@master-duma-linux-shared-release+osmesa+ospray

00:24:00

failed vtk@master-duma-linux-shared-release+osmesa+ospray

failed vtk@master-duma-linux-shared-release+osmesa+ospray

00:00:17

passed vtk@master-eeloo-linux-shared-release+mpi+nogl

passed vtk@master-eeloo-linux-shared-release+mpi+nogl

00:18:43

failed vtk@master-eeloo-linux-shared-release+mpi+nogl

00:00:18

passed vtk@master-luigi-linux-shared-release+mpi+python2+tbb

passed vtk@master-luigi-linux-shared-release+mpi+python2+tbb

00:50:34

passed vtk@master-luigi-linux-shared-release+mpi+python2+tbb

00:05:58

passed vtk@master-mun-windows-shared-release+kits+mpi+python3+qt+tbb

00:08:37

passed vtk@master-mun-windows-shared-release+kits+mpi+python3+qt+tbb

passed vtk@master-mun-windows-shared-release+kits+mpi+python3+qt+tbb

00:32:19

passed vtk@master-mun-windows-shared-release+mpi+python3+tbb+vtkm

00:31:22

passed vtk@master-mun-windows-shared-release+mpi+python3+tbb+vtkm

passed vtk@master-mun-windows-shared-release+mpi+python3+tbb+vtkm

00:08:19

failed vtk@master-mun-windows-static-release+mpi+qt+tbb

00:26:43

failed vtk@master-mun-windows-static-release+mpi+qt+tbb

failed vtk@master-mun-windows-static-release+mpi+qt+tbb

00:06:09

passed vtk@master-taanab-linux-shared-release+adios2+mpi+python2

00:19:55

passed vtk@master-taanab-linux-shared-release+adios2+mpi+python2

failed vtk@master-taanab-linux-shared-release+adios2+mpi+python2

00:05:49

failed vtk@master-trey-osx-shared-release+python3+qt

00:00:24

passed vtk@master-trey-osx-shared-release+python3+qt

00:57:41

passed vtk@master-trey-osx-shared-release+python3+qt