am 6767f88e: Address warnings pointed out by clang

* commit '6767f88e3c7814ab9aecd256e24b939f9b80234a':
  Address warnings pointed out by clang
main
Ken Wakasa 2014-03-07 00:32:42 -08:00 committed by Android Git Automerger
commit 1e7ab379d8
2 changed files with 2 additions and 5 deletions

View File

@ -129,7 +129,7 @@ class ProximityInfoUtils {
struct NormalDistribution { struct NormalDistribution {
public: public:
NormalDistribution(const float u, const float sigma) NormalDistribution(const float u, const float sigma)
: mU(u), mSigma(sigma), : mU(u),
mPreComputedNonExpPart(1.0f / sqrtf(2.0f * M_PI_F mPreComputedNonExpPart(1.0f / sqrtf(2.0f * M_PI_F
* GeometryUtils::SQUARE_FLOAT(sigma))), * GeometryUtils::SQUARE_FLOAT(sigma))),
mPreComputedExponentPart(-1.0f / (2.0f * GeometryUtils::SQUARE_FLOAT(sigma))) {} mPreComputedExponentPart(-1.0f / (2.0f * GeometryUtils::SQUARE_FLOAT(sigma))) {}
@ -143,7 +143,6 @@ class ProximityInfoUtils {
private: private:
DISALLOW_IMPLICIT_CONSTRUCTORS(NormalDistribution); DISALLOW_IMPLICIT_CONSTRUCTORS(NormalDistribution);
const float mU; // mean value const float mU; // mean value
const float mSigma; // standard deviation
const float mPreComputedNonExpPart; // = 1 / sqrt(2 * PI * sigma^2) const float mPreComputedNonExpPart; // = 1 / sqrt(2 * PI * sigma^2)
const float mPreComputedExponentPart; // = -1 / (2 * sigma^2) const float mPreComputedExponentPart; // = -1 / (2 * sigma^2)
}; // struct NormalDistribution }; // struct NormalDistribution

View File

@ -31,8 +31,7 @@ class Ver4ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
public: public:
Ver4ShortcutListPolicy(ShortcutDictContent *const shortcutDictContent, Ver4ShortcutListPolicy(ShortcutDictContent *const shortcutDictContent,
const TerminalPositionLookupTable *const terminalPositionLookupTable) const TerminalPositionLookupTable *const terminalPositionLookupTable)
: mShortcutDictContent(shortcutDictContent), : mShortcutDictContent(shortcutDictContent) {}
mTerminalPositionLookupTable(terminalPositionLookupTable) {}
~Ver4ShortcutListPolicy() {} ~Ver4ShortcutListPolicy() {}
@ -104,7 +103,6 @@ class Ver4ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
DISALLOW_IMPLICIT_CONSTRUCTORS(Ver4ShortcutListPolicy); DISALLOW_IMPLICIT_CONSTRUCTORS(Ver4ShortcutListPolicy);
ShortcutDictContent *const mShortcutDictContent; ShortcutDictContent *const mShortcutDictContent;
const TerminalPositionLookupTable *const mTerminalPositionLookupTable;
}; };
} // namespace latinime } // namespace latinime
#endif // LATINIME_VER4_SHORTCUT_LIST_POLICY_H #endif // LATINIME_VER4_SHORTCUT_LIST_POLICY_H