pkgsrc-ng/print/pdf2djvu/patches/patch-pdf2djvu.cc
2013-09-26 17:14:40 +02:00

19 lines
482 B
C++

$NetBSD: patch-pdf2djvu.cc,v 1.1 2013/06/18 20:11:18 joerg Exp $
--- pdf2djvu.cc.orig 2013-06-18 19:40:16.000000000 +0000
+++ pdf2djvu.cc
@@ -210,6 +210,13 @@ public:
friend Command &operator <<(Command &, const Component &);
};
+Command &operator <<(Command &command, const File &arg)
+{
+ const std::string filename(arg);
+ command << filename;
+ return command;
+}
+
Command &operator <<(Command &command, const Component &component)
{
command << *component.file;