summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/output/pq/updateDatabase.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp
index b8e27ba..1dab95e 100644
--- a/lib/output/pq/updateDatabase.cpp
+++ b/lib/output/pq/updateDatabase.cpp
@@ -98,6 +98,12 @@ namespace MyGrate::Output::Pq {
}
struct WritePqCopyStream {
+ explicit WritePqCopyStream(FILE * o) : out {o} { }
+ WritePqCopyStream(const WritePqCopyStream &) = delete;
+ WritePqCopyStream(WritePqCopyStream &&) = delete;
+ WritePqCopyStream & operator=(const WritePqCopyStream &) = delete;
+ WritePqCopyStream & operator=(WritePqCopyStream &&) = delete;
+
~WritePqCopyStream()
{
fputc('\n', out);