Changeset View
Changeset View
Standalone View
Standalone View
src/document/editorconfig.cpp
Show All 39 Lines | 28 | { | |||
---|---|---|---|---|---|
40 | } | 40 | } | ||
41 | return false; | 41 | return false; | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | * @return whether a string value could be converted to a integer value. The | 45 | * @return whether a string value could be converted to a integer value. The | ||
46 | * value is put in *result. | 46 | * value is put in *result. | ||
47 | */ | 47 | */ | ||
48 | static bool checkIntValue(QString val, int *result) | 48 | static bool checkIntValue(const QString &val, int *result) | ||
49 | { | 49 | { | ||
50 | bool ret(false); | 50 | bool ret(false); | ||
51 | *result = val.toInt(&ret); | 51 | *result = val.toInt(&ret); | ||
52 | return ret; | 52 | return ret; | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | EditorConfig::EditorConfig(KTextEditor::DocumentPrivate *document) | 55 | EditorConfig::EditorConfig(KTextEditor::DocumentPrivate *document) | ||
56 | : m_document(document) | 56 | : m_document(document) | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |