From 81c3224076da6ad727debc6bab8a5422f7322451 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2013 12:25:08 +0200 Subject: OutputPlugin: pass config_param reference --- src/ConfigData.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ConfigData.hxx') diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 5e13d073c..d6b024b9b 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -80,6 +80,15 @@ struct config_param { config_param &operator=(const config_param &) = delete; + /** + * Determine if this is a "null" instance, i.e. an empty + * object that was synthesized and not loaded from a + * configuration file. + */ + bool IsNull() const { + return line == unsigned(-1); + } + gcc_nonnull_all void AddBlockParam(const char *_name, const char *_value, int _line=-1) { -- cgit v1.2.3