summaryrefslogtreecommitdiff
path: root/glretrace_main.cpp
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-24 20:09:41 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-24 20:09:41 +0000
commit447b3d5c7402b0a9e780a26dfed76376e723ac94 (patch)
tree3279c371a6e3d25c151816c43c4cad9426e7a339 /glretrace_main.cpp
parent6b490424d2b1a6036a6804dcea2cb0fe7845b9e5 (diff)
Cleanup and generalize os string class.
Diffstat (limited to 'glretrace_main.cpp')
-rw-r--r--glretrace_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/glretrace_main.cpp b/glretrace_main.cpp
index dfb051c6..3c010d28 100644
--- a/glretrace_main.cpp
+++ b/glretrace_main.cpp
@@ -26,7 +26,7 @@
#include <string.h>
-#include "os_path.hpp"
+#include "os_string.hpp"
#include "image.hpp"
#include "retrace.hpp"
#include "glproc.hpp"
@@ -140,7 +140,7 @@ void snapshot(unsigned call_no) {
image::Image *ref = NULL;
if (compare_prefix) {
- os::Path filename = os::Path::format("%s%010u.png", compare_prefix, call_no);
+ os::String filename = os::String::format("%s%010u.png", compare_prefix, call_no);
ref = image::readPNG(filename);
if (!ref) {
return;
@@ -161,7 +161,7 @@ void snapshot(unsigned call_no) {
snprintf(comment, sizeof comment, "%u", call_no);
src->writePNM(std::cout, comment);
} else {
- os::Path filename = os::Path::format("%s%010u.png", snapshot_prefix, call_no);
+ os::String filename = os::String::format("%s%010u.png", snapshot_prefix, call_no);
if (src->writePNG(filename) && retrace::verbosity >= 0) {
std::cout << "Wrote " << filename << "\n";
}