mirror of
https://github.com/arcan1s/qtadds-pdebug.git
synced 2025-04-24 15:37:22 +00:00
fix args with ::
This commit is contained in:
parent
294a590bb9
commit
9c63e102b0
2
pdebug.h
2
pdebug.h
@ -28,7 +28,7 @@ inline const char *pDebug(const std::string prettyFunction)
|
|||||||
|
|
||||||
inline std::string pFuncInfo(const std::string prettyFunction)
|
inline std::string pFuncInfo(const std::string prettyFunction)
|
||||||
{
|
{
|
||||||
size_t colons = prettyFunction.find("::");
|
size_t colons = prettyFunction.rfind("::");
|
||||||
// workaround for functions which are not belong to any class
|
// workaround for functions which are not belong to any class
|
||||||
if (colons == std::string::npos)
|
if (colons == std::string::npos)
|
||||||
colons = prettyFunction.rfind("(");
|
colons = prettyFunction.rfind("(");
|
||||||
|
Loading…
Reference in New Issue
Block a user