MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / stdstr

Function stdstr

syncthing/interface.cpp:66–71  ·  view source on GitHub ↗

! * \brief Converts the specified C-string to a std::string. Takes care of freeing \a str. */

Source from the content-addressed store, hash-verified

64 * \brief Converts the specified C-string to a std::string. Takes care of freeing \a str.
65 */
66inline string stdstr(char *str)
67{
68 const string copy(str);
69 free(reinterpret_cast<void *>(str));
70 return copy;
71}
72
73/*!
74 * \brief Converts the specified "GoString" to a std::string.

Callers 4

ownDeviceIdFunction · 0.85
syncthingVersionFunction · 0.85
longSyncthingVersionFunction · 0.85
verifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected