summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-24 09:21:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-27 09:45:55 +0000
commitab07cf855d5599a9262276c04d22d0edb7f64f37 (patch)
tree16d7a72ad74f967440213016b338a055676890e5 /vcl
parentByteString->rtl::OString (diff)
downloadcore-ab07cf855d5599a9262276c04d22d0edb7f64f37.tar.gz
core-ab07cf855d5599a9262276c04d22d0edb7f64f37.zip
WaE: some super-high debugging level warnings
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index a75574983742..6e72834660df 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -71,14 +71,18 @@
//
#ifdef GRLAYOUT_DEBUG
-static FILE * grLogFile = NULL;
static FILE * grLog()
{
#ifdef WNT
- std::string logFileName(getenv("TEMP"));
- logFileName.append("/graphitelayout.log");
- if (grLogFile == NULL) grLogFile = fopen(logFileName.c_str(),"w");
- else fflush(grLogFile);
+ static FILE * grLogFile = NULL;
+ if (grLogFile == NULL)
+ {
+ std::string logFileName(getenv("TEMP"));
+ logFileName.append("/graphitelayout.log");
+ grLogFile = fopen(logFileName.c_str(),"w");
+ }
+ else
+ fflush(grLogFile);
return grLogFile;
#else
fflush(stdout);
@@ -399,7 +403,7 @@ GraphiteLayout::fillFrom(gr_segment * pSegment, ImplLayoutArgs &rArgs, float fSc
mvGlyphs[i].maLinearPos.X() -= nXOffset;
}
#ifdef GRLAYOUT_DEBUG
- fprintf(grLog(), "fillFrom %d glyphs offset %ld width %d\n", mvGlyphs.size(), nXOffset, mnWidth);
+ fprintf(grLog(), "fillFrom %" SAL_PRI_SIZET " glyphs offset %ld width %ld\n", mvGlyphs.size(), nXOffset, mnWidth);
#endif
}