Whitespace & renaming

This commit is contained in:
Yuriy Skalko 2020-11-05 12:01:21 +02:00
parent 01e673635b
commit 589e780e15
3 changed files with 7 additions and 7 deletions

View File

@ -529,8 +529,8 @@ public:
/// ///
virtual bool allowSpellCheck() const { return false; } virtual bool allowSpellCheck() const { return false; }
/// if this insets owns text cells (e.g. InsetText) return cell num /// if this insets owns text cells (e.g. InsetText) return cell idx
virtual Text * getText(int /*num*/) const { return 0; } virtual Text * getText(int /*idx*/) const { return 0; }
/** Adds a LaTeX snippet to the Preview Loader for transformation /** Adds a LaTeX snippet to the Preview Loader for transformation
* into a bitmap image. Does not start the loading process. * into a bitmap image. Does not start the loading process.

View File

@ -114,8 +114,8 @@ public:
/// ///
void setFrameColor(ColorCode); void setFrameColor(ColorCode);
/// ///
Text * getText(int i) const override { Text * getText(int idx) const override {
return (i == 0) ? const_cast<Text*>(&text_) : 0; return (idx == 0) ? const_cast<Text*>(&text_) : nullptr;
} }
/// ///
bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override; bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;