Skip to content

Commit ee8dfc6

Browse files
committed
Document that wxLogInterposerTemp shouldn't be used
Mark it as deprecated in the documentation without deprecating it formally in the code, as it seems to be used in some existing code and there is no urgency to remove it, but using it in new code still doesn't make any sense. See wxWidgets#23945. (cherry picked from commit 543fd3f)
1 parent cb69e76 commit ee8dfc6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

interface/wx/log.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,13 +748,11 @@ class wxLogInterposer : public wxLogChain
748748
/**
749749
@class wxLogInterposerTemp
750750
751-
A special version of wxLogChain which uses itself as the new log target.
752-
It forwards log messages to the previously installed one in addition to
753-
processing them itself. Unlike wxLogInterposer, it doesn't delete the old
754-
target which means it can be used to temporarily redirect log output.
751+
Legacy class which should not be used any longer.
755752
756-
As per wxLogInterposer, this class must be derived from to implement
757-
wxLog::DoLog and/or wxLog::DoLogString methods.
753+
@deprecated
754+
This class is only preserved for compatibility, but using it can result in
755+
unexpected behaviour and memory leaks.
758756
759757
@library{wxbase}
760758
@category{logging}

0 commit comments

Comments
 (0)