summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-05 20:43:23 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-05 20:53:13 +0100
commitcd5ab761e5a0db0475a20a37566a0175f91d9129 (patch)
tree321f0e63eb5a6418be0f1ca14c4b5b9c1948c1ca /lib
parentAdd missing braces (diff)
downloadmygrate-cd5ab761e5a0db0475a20a37566a0175f91d9129.tar.bz2
mygrate-cd5ab761e5a0db0475a20a37566a0175f91d9129.tar.xz
mygrate-cd5ab761e5a0db0475a20a37566a0175f91d9129.zip
Prevent move and copy of WritePqCopyStream
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);