diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-08-23 23:07:41 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2018-08-23 23:11:14 +0200 |
commit | dcd8ad25023db542ade5edc23fc5f943d8ee6376 (patch) | |
tree | 1b0d310662babb109133b279db7880c527fa7083 /poppler/Object.h | |
parent | d63564b2bca955c7ef6ec694e3c64f9e4ee46d57 (diff) |
Also delete Object::dictAdd that takes a char *
Makes sure noone gets a char * -> const char * promotion via Object
Diffstat (limited to 'poppler/Object.h')
-rw-r--r-- | poppler/Object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poppler/Object.h b/poppler/Object.h index 156e6aa4..01d76450 100644 --- a/poppler/Object.h +++ b/poppler/Object.h @@ -15,7 +15,7 @@ // // Copyright (C) 2007 Julien Rebetez <julienr@svn.gnome.org> // Copyright (C) 2008 Kees Cook <kees@outflux.net> -// Copyright (C) 2008, 2010, 2017 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2008, 2010, 2017, 2018 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2009 Jakub Wilk <jwilk@jwilk.net> // Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it> // Copyright (C) 2013 Thomas Freitag <Thomas.Freitag@alfa.de> @@ -264,6 +264,7 @@ public: // Dict accessors. int dictGetLength() const; + void dictAdd(char *key, Object &&val) = delete; void dictAdd(const char *key, Object &&val); void dictSet(const char *key, Object &&val); void dictRemove(const char *key); |