Address warnings pointed out by clang
Change-Id: I7943f6c7f9ba08f283a3116adc2af29495f04a21main
parent
2bebda2fa7
commit
6767f88e3c
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue