]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/java/jxbt_utilities.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove explicit conversion to std::string when it's not required.
[simgrid.git] / src / bindings / java / jxbt_utilities.hpp
index c882d5cb1e5f7d43ec241edee36e9d3d4edb0978..919ac6ec887bfd313bfdb0106e08db87b13fcc36 100644 (file)
@@ -1,6 +1,6 @@
 /* Various JNI helper functions                                             */
 
-/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -84,7 +84,7 @@ public:
       env_->ReleaseStringUTFChars(jstr_, value);
   }
   operator const char*() const { return value; }
-  operator const std::string() const { return std::string(value); }
+  operator const std::string() const { return value; }
 };
 
 #endif