Do not pass objects to Printf.
This seems to have worked by accident everywhere. Interestingly, clang -Wall did not warn about this, but MSVC did.pull/4/head
parent
818436c57d
commit
158c66b1b4
|
@ -174,7 +174,7 @@ void TextWindow::DescribeSelection(void) {
|
||||||
Printf(true, " font = '%Fi%s%E'", e->font.c_str());
|
Printf(true, " font = '%Fi%s%E'", e->font.c_str());
|
||||||
if(e->h.isFromRequest()) {
|
if(e->h.isFromRequest()) {
|
||||||
Printf(false, " text = '%Fi%s%E' %Fl%Ll%f%D[change]%E",
|
Printf(false, " text = '%Fi%s%E' %Fl%Ll%f%D[change]%E",
|
||||||
e->str.c_str(), &ScreenEditTtfText, e->h.request());
|
e->str.c_str(), &ScreenEditTtfText, e->h.request().v);
|
||||||
Printf(true, " select new font");
|
Printf(true, " select new font");
|
||||||
SS.fonts.LoadAll();
|
SS.fonts.LoadAll();
|
||||||
int i;
|
int i;
|
||||||
|
@ -309,7 +309,7 @@ void TextWindow::DescribeSelection(void) {
|
||||||
Printf(false, "%FtDIAMETER CONSTRAINT");
|
Printf(false, "%FtDIAMETER CONSTRAINT");
|
||||||
|
|
||||||
Printf(true, " %Fd%f%D%Ll%s show as radius",
|
Printf(true, " %Fd%f%D%Ll%s show as radius",
|
||||||
&ScreenConstraintShowAsRadius, gs.constraint[0],
|
&ScreenConstraintShowAsRadius, gs.constraint[0].v,
|
||||||
c->other ? CHECK_TRUE : CHECK_FALSE);
|
c->other ? CHECK_TRUE : CHECK_FALSE);
|
||||||
} else {
|
} else {
|
||||||
Printf(false, "%FtSELECTED:%E %s",
|
Printf(false, "%FtSELECTED:%E %s",
|
||||||
|
|
Loading…
Reference in New Issue