[Pkg-javascript-commits] [node-leveldown] 223/492: add const to LU_STR and LU_OPTION macros

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit b5bf23f216798e732a3ee7f98948b6cf8546af2b
Author: Lars-Magnus Skog <lars.magnus.skog at gmail.com>
Date:   Fri Feb 22 15:31:35 2013 +0100

    add const to LU_STR and LU_OPTION macros
---
 src/leveldown.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/leveldown.h b/src/leveldown.h
index 7fb093e..815a26d 100644
--- a/src/leveldown.h
+++ b/src/leveldown.h
@@ -7,11 +7,11 @@
 #define LU_LEVELDOWN_H
 
 #define LU_STR(key) \
-  static v8::Persistent<v8::String> str_ ## key = \
+  static const v8::Persistent<v8::String> str_ ## key = \
     v8::Persistent<v8::String>::New(v8::String::New(#key));
 
 #define LU_OPTION(key) \
-  static v8::Persistent<v8::String> option_ ## key = \
+  static const v8::Persistent<v8::String> option_ ## key = \
     v8::Persistent<v8::String>::New(v8::String::New(#key));
 
 #define LU_V8_METHOD(name) \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list