aboutsummaryrefslogtreecommitdiff
path: root/qerror.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-07-20 12:02:58 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-08-13 13:19:57 -0300
commit18da7c0f1f24cc00f7c2f80c27cb85e4b234e091 (patch)
tree0c1af030d4bde3155af1965ba72b7bbec62eab37 /qerror.h
parent2b38cf2e033d90fb50fc967f535935b170dc507d (diff)
qerror: don't delay error message construction
Today, the error message is only constructed when it's used. This commit changes qerror to construct the error message when the error object is built (ie. when the error is reported). This eliminates the need of storing a pointer to qerror_table[], which will be dropped soon, and also simplifies the code. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qerror.h b/qerror.h
index aec76b24e1..de8497d1eb 100644
--- a/qerror.h
+++ b/qerror.h
@@ -27,7 +27,7 @@ typedef struct QError {
QObject_HEAD;
QDict *error;
Location loc;
- const QErrorStringTable *entry;
+ char *err_msg;
} QError;
QString *qerror_human(const QError *qerror);