2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-10 14:12:26 +00:00

Tidy QPDF.cc - make InvalidInputSource::throwException static

This commit is contained in:
m-holger 2023-05-22 14:23:41 +01:00
parent 6d95c83a45
commit e391c411e2

View File

@ -97,13 +97,12 @@ namespace
}
private:
void
static void
throwException()
{
throw std::logic_error("QPDF operation attempted on a QPDF object with no input "
"source."
" QPDF operations are invalid before processFile (or another"
" process method) or after closeInputSource");
"source. QPDF operations are invalid before processFile (or "
"another process method) or after closeInputSource");
}
};
} // namespace