diff options
author | 2012-07-30 16:27:44 +0900 | |
---|---|---|
committer | 2012-07-30 16:27:44 +0900 | |
commit | 5460ea389d83722ac98abaef8a2bb9900fb571e7 (patch) | |
tree | 6a1f33b3f41e00ee2b658ebe024a0eb0067ddcc3 /native/jni/src | |
parent | efd8b838ee9415ba4ed692ecf136a918cfa02c54 (diff) | |
download | latinime-5460ea389d83722ac98abaef8a2bb9900fb571e7.tar.gz latinime-5460ea389d83722ac98abaef8a2bb9900fb571e7.tar.xz latinime-5460ea389d83722ac98abaef8a2bb9900fb571e7.zip |
Misc cleanups
Change-Id: I28308f12c3064299acefc346b72279036c3726a7
Diffstat (limited to 'native/jni/src')
-rw-r--r-- | native/jni/src/bigram_dictionary.cpp | 3 | ||||
-rw-r--r-- | native/jni/src/debug.h | 3 | ||||
-rw-r--r-- | native/jni/src/defines.h | 5 | ||||
-rw-r--r-- | native/jni/src/dictionary.cpp | 1 | ||||
-rw-r--r-- | native/jni/src/unigram_dictionary.cpp | 3 |
5 files changed, 5 insertions, 10 deletions
diff --git a/native/jni/src/bigram_dictionary.cpp b/native/jni/src/bigram_dictionary.cpp index 4f5493ad1..8dc212203 100644 --- a/native/jni/src/bigram_dictionary.cpp +++ b/native/jni/src/bigram_dictionary.cpp @@ -1,6 +1,5 @@ /* - * - * Copyright 2010, The Android Open Source Project + * Copyright (C) 2010, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/native/jni/src/debug.h b/native/jni/src/debug.h index 2fee6e83f..2168d6672 100644 --- a/native/jni/src/debug.h +++ b/native/jni/src/debug.h @@ -1,6 +1,5 @@ /* - * - * Copyright 2011, The Android Open Source Project + * Copyright (C) 2011, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h index 05b997d59..e172b0441 100644 --- a/native/jni/src/defines.h +++ b/native/jni/src/defines.h @@ -1,6 +1,5 @@ /* - * - * Copyright 2010, The Android Open Source Project + * Copyright (C) 2010, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -96,7 +95,7 @@ static inline void prof_out(void) { } if (all == 0) all = 1; for (int i = 0; i < PROF_BUF_SIZE - 1; ++i) { - if (profile_buf[i] != 0) { + if (profile_buf[i]) { AKLOGI("(%d): Used %4.2f%%, %8.4f ms. Called %d times.", i, (profile_buf[i] * 100 / all), profile_buf[i] * 1000 / (float)CLOCKS_PER_SEC, profile_counter[i]); diff --git a/native/jni/src/dictionary.cpp b/native/jni/src/dictionary.cpp index 4703a38e8..dabd98b5f 100644 --- a/native/jni/src/dictionary.cpp +++ b/native/jni/src/dictionary.cpp @@ -1,5 +1,4 @@ /* - * * Copyright (C) 2009, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/native/jni/src/unigram_dictionary.cpp b/native/jni/src/unigram_dictionary.cpp index b121d08a8..ce3108b3b 100644 --- a/native/jni/src/unigram_dictionary.cpp +++ b/native/jni/src/unigram_dictionary.cpp @@ -1,6 +1,5 @@ /* - * - * Copyright 2010, The Android Open Source Project + * Copyright (C) 2010, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |