picout no empty name

This commit is contained in:
2021-05-31 12:51:50 +03:00
parent 1ec9481c19
commit 52a3653261

View File

@@ -35,7 +35,7 @@
#else
# define piCout PICout(piDebug)
# define piCoutObj PICout(piDebug && debug()) << (PIStringAscii("[") + className() + PIStringAscii(" \"") + name() + PIStringAscii("\"]"))
# define piCoutObj PICout(piDebug && debug()) << (PIStringAscii("[") + className() + (name().isEmpty() ? "" : PIStringAscii(" \"") + name() + PIStringAscii("\"]")))
#endif