Make CMemo::OsPrint const by fixing CSyncList.
While working on extracting a common implementation of DbgPrint() into a mixin (commit forthcoming), I ran into the curious phenomenon that is the non-const CMemo::OsPrint. I almost dropped the requirement that DbgPrint requires "OsPrint() const", before realizing that the root cause is CSyncList has non-const Next() and friends. And that could be easily fixed. Make it so. While we're at it, also fixed a fairly obvious omission in CMemo::OsPrint where the output stream parameter was unused. We output to an unrelated "auto" stream instead. This was probably never noticed because we were relying on the assumption that streams are always connected to standard output.
Showing
想要评论请 注册 或 登录