Skip to content

Commit e914c2c

Browse files
committed
refactored code to use android/database/CursorWindow instead of unnecessary clone into gp namespace
1 parent a2efc39 commit e914c2c

6 files changed

+23
-740
lines changed

jni/Android.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
uOCAL_PATH:= $(call my-dir)
1+
LOCAL_PATH:= $(call my-dir)
22

33
EXTERNAL_PATH := ../external
44

5-
65
ifeq ($(TARGET_ARCH), arm)
76
LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
87
else
@@ -22,13 +21,14 @@ endif
2221
include $(CLEAR_VARS)
2322

2423
LOCAL_SRC_FILES:= \
25-
info_guardianproject_database_sqlcipher_SQLiteCompiledSql.cpp \
24+
CursorWindow.cpp \
2625
info_guardianproject_database_sqlcipher_SQLiteDatabase.cpp \
2726
info_guardianproject_database_sqlcipher_SQLiteProgram.cpp \
2827
info_guardianproject_database_sqlcipher_SQLiteQuery.cpp \
2928
info_guardianproject_database_sqlcipher_SQLiteStatement.cpp \
30-
info_guardianproject_database_CursorWindow.cpp \
31-
CursorWindow.cpp
29+
info_guardianproject_database_sqlcipher_SQLiteCompiledSql.cpp
30+
#android_database_CursorWindow.cpp \
31+
#info_guardianproject_database_CursorWindow.cpp \
3232
# info_guardianproject_database_sqlcipher_SQLiteDebug.cpp
3333

3434
LOCAL_C_INCLUDES += \

jni/CursorWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "CursorWindow.h"
3232

3333

34-
namespace guardianproject {
34+
namespace android {
3535

3636
CursorWindow::CursorWindow(size_t maxSize) :
3737
mMaxSize(maxSize)

jni/CursorWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
// When defined to true numberic values are stored inline in the field_slot_t, otherwise they're allocated in the window
6363
#define WINDOW_STORAGE_INLINE_NUMERICS 1
6464

65-
namespace guardianproject {
65+
namespace android {
6666

6767
typedef struct
6868
{

0 commit comments

Comments
 (0)