diff options
author | Gergo Mocsi <gmocsi91@gmail.com> | 2013-08-14 12:56:39 +0200 |
---|---|---|
committer | Gergo Mocsi <gmocsi91@gmail.com> | 2013-09-02 18:16:59 +0200 |
commit | 82a4ad7a5c18801c64a28e9df6a96c0e1abf5b64 (patch) | |
tree | b0c6944080ba45b6a4fd0685c9f670ba339c9a0c /basic | |
parent | GSOC work, behavior fixes (diff) | |
download | core-82a4ad7a5c18801c64a28e9df6a96c0e1abf5b64.tar.gz core-82a4ad7a5c18801c64a28e9df6a96c0e1abf5b64.zip |
GSOC work, renaming + options fix
Options now work correctly: I've added the missing function.
Rename: renamed some variables and methods to kep the consistence( Autocorrect keywords -> Autocorrect).
Change-Id: I6b4914575f1a06eb3268c133b8b990364e3d24e4
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/codecompletecache.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/classes/codecompletecache.cxx b/basic/source/classes/codecompletecache.cxx index 999c3241eb50..9d78455cf2b9 100644 --- a/basic/source/classes/codecompletecache.cxx +++ b/basic/source/classes/codecompletecache.cxx @@ -29,7 +29,7 @@ namespace CodeCompleteOptions::CodeCompleteOptions() { - bIsAutoCorrectKeywordsOn = officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::get(); + bIsAutoCorrectOn = officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::get(); bIsAutoCloseParenthesisOn = officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::get(); bIsAutoCloseQuotesOn = officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::get(); bIsProcedureAutoCompleteOn = officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::get(); @@ -87,14 +87,14 @@ void CodeCompleteOptions::SetAutoCloseParenthesisOn( const bool& b ) theCodeCompleteOptions::get().bIsAutoCloseParenthesisOn = b; } -bool CodeCompleteOptions::IsAutoCorrectKeywordsOn() +bool CodeCompleteOptions::IsAutoCorrectOn() { - return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsAutoCorrectKeywordsOn; + return theCodeCompleteOptions::get().aMiscOptions.IsExperimentalMode() && theCodeCompleteOptions::get().bIsAutoCorrectOn; } -void CodeCompleteOptions::SetAutoCorrectKeywordsOn( const bool& b ) +void CodeCompleteOptions::SetAutoCorrectOn( const bool& b ) { - theCodeCompleteOptions::get().bIsAutoCorrectKeywordsOn = b; + theCodeCompleteOptions::get().bIsAutoCorrectOn = b; } std::ostream& operator<< (std::ostream& aStream, const CodeCompleteDataCache& aCache) |