45 Commits

Author SHA1 Message Date
Don HO
3de506bf48
Update copyright
Close #5919
2020-04-04 23:03:18 +02:00
Don HO
06db9ee338
Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
Don HO
2d15d90e02
Fix local variable shadows outer variable issues 2019-07-08 14:39:14 +02:00
Rajendra Singh
9539a892eb
Code quality improvement: pass string by reference instead of value
Also remove not implemented methods addBufferToView(), moveBuffer() and doActionOrNot() from Notepad_plus.h

Close #5784
2019-06-25 14:21:35 +02:00
Don HO
52a4e21af5
Remove ugly coding style 2019-03-16 05:33:50 +01:00
Don HO
bd7816755c [EU-FOSSA] Replace lstrcat by wcscat_s to avoid crash 2019-02-22 12:57:58 +01:00
Don HO
7fe3cda1d0 [EU-FOSSA] Use wcscpy_s instead of lstrcpy to prevent from buffer overflow 2019-02-11 02:07:04 +01:00
Don HO
58037e07b1 [EU-FOSSA] Fix stack buffer overflow on wsprintf in WordStyle dialog
Also remove dynamic allocation for CB_GETLBTEXT and use local array instead by controlling buffer size.
2019-02-09 03:28:52 +01:00
Don HO
0438447194 [EU-FOSSA] Fix stack buffer overflow on LB_GETTEXT 2019-02-08 22:13:12 +01:00
Don HO
cdd13ecadc [EU-FOSSA] Fix stack buffer overflow on CB_GETLBTEXT 2019-02-08 12:38:34 +01:00
Oleksandr Redko
29f28098ae Fix static analyzer issue "A virtual function was overridden incorrectly"
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'UserDefineDialog' and base class 'StaticDialog'. userdefinedialog.h 332
V762 It is possible a virtual function was overridden incorrectly. See first argument of function 'redraw' in derived class 'SplitterContainer' and base class 'Window'. splittercontainer.h 61
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'FindReplaceDlg' and base class 'StaticDialog'. findreplacedlg.h 245
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'GoToLineDlg' and base class 'StaticDialog'. gotolinedlg.h 45
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'FindCharsInRangeDlg' and base class 'StaticDialog'. findcharsinrange.h 52
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'ColumnEditorDlg' and base class 'StaticDialog'. columneditor.h 45
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'WordStyleDlg' and base class 'StaticDialog'. wordstyledlg.h 77
V762 It is possible a virtual function was overridden incorrectly. See first argument of function 'redraw' in derived class 'WordStyleDlg' and base class 'Window'. wordstyledlg.h 99
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'create' in derived class 'PluginsAdminDlg' and base class 'StaticDialog'. pluginsadmin.h 100
2017-10-29 18:18:15 +02:00
Oleksandr Redko
81847599d0 Fix static analyzer issue "The enumeration constant 'inactiveText' is used as a variable of a Boolean-type."
V768 The enumeration constant 'inactiveText' is used as a variable of a Boolean-type. wordstyledlg.cpp 438
2017-10-29 18:18:07 +02:00
Don HO
d4bcec1c01 Lost in Translation 3 2016-08-11 22:29:39 +02:00
Don HO
37ed299743 Lost in Translation 2 2016-08-10 00:22:45 +02:00
Don HO
2e82a99649 Lost in translation
while (true)
{
conversion<C++>(C-Style cast );
}
2016-08-06 01:29:54 +02:00
Don HO
30bd15f04a Use C++ conversion instead of C style cast 2016-07-23 11:37:58 +02:00
Don HO
797765173d Improve code quality by using static code analysis tool (cppchecker) 2016-07-18 02:08:29 +02:00
Don HO
1e38c628bc Use C++ type conversion instead of C-Style conversion 2016-07-10 02:21:15 +02:00
Don HO
64d7535be1 x64 ready
1. Remove all warning while compiling in x64
2. Treat warning as error (W4) while compiling in x64
2016-06-05 20:30:22 +02:00
Markus Heidelberg
715a64a32a Make GCC/MinGW build work again and support cross-building under Linux
Close #1229, Fixes #385
Only build errors are fixed, compile warnings are left alone. To reduce
the number of changes, even the compiler option "-fpermissive" has been
used to downgrade several errors to warnings.
2015-12-15 17:10:46 +01:00
Damien GERARD
366a393f13 minor code cleanup for future refactoring 2015-08-06 11:50:58 +02:00
Don Ho
91992d0b7c [ENHANCEMENT] Use "Source Code Pro" as default font
Source Code Pro is included in the Notepad++ distribution for its
internal use.
If it's not the first time of Notepad++ installation (ie. updating),
users need to set Source Code Pro as default font manually via style
configurator dialog, or just delete "%APPDATA%\Notepad++\stylers.xml".
2015-07-18 21:18:39 +02:00
NN
dbb43a729f DlgProc returns INT_PTR and not BOOL. Use correct prototype and remove casts.
See https://msdn.microsoft.com/en-us/library/windows/desktop/ms645469(v=vs.85).aspx
2015-06-01 21:30:41 +03:00
Don Ho
e9e710a3d4 [UPDATE] Unprecompile headers (part 2) 2015-05-31 22:40:07 +02:00
Don Ho
7df06f9925 [BUG_FIXED] Fix the bug that modified tab interface colour settings cannot be saved in stylers configurator.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1164 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-12-26 17:01:17 +00:00
Don Ho
6264ef03d0 [ENHANCEMENT] Code optimization.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1073 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-07-08 00:12:50 +00:00
Don Ho
f80a49148e [BUG_FIXED] (Author: Andreas Jonsson) Minor fixes.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1072 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-07-07 21:33:19 +00:00
Don Ho
a62ecb6449 [ENHANCEMENT] Enhance the performance to get once the length in the for loop.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1041 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-05-15 07:28:55 +00:00
Don Ho
60ed8107ba [UPDATE] Add STYLE_NOT_USED constant to make source code more readable.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@982 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-11-06 01:34:40 +00:00
Don Ho
29ff3561ca [BUG_FIXED] Fix a regression bug about Configurator GUI: font setting controls are disabled.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@978 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-11-04 14:13:44 +00:00
Don Ho
a58e54bc68 [NEW_FEATURE] (Author: Loreia L.) New implementation of User Defined Language - UDL2.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@960 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-09-28 21:04:16 +00:00
Don Ho
a896922136 [UPDATE] Update the GPL of all project source code to avoid the bundle version made by the tiers sites : cnet, softonic and 01net.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@896 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-04-15 16:54:38 +00:00
Don Ho
d6f66b1d73 [ENHANCEMENT] Enhance the source code.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@873 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-02-27 01:05:24 +00:00
Don Ho
b94ab27b35 [BUG_FIXED] (Author: Christian Cuvier) Fix the changing theme settings makes switch back to the default theme bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@719 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-11-25 22:56:02 +00:00
Don Ho
b3f11896eb [RELEASE] Notepad++ v5.6.7 release.
[CHANGE_BEHAVIOUR] Enlarge regconition of clickable link from "http://" to any URI.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@617 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-02-21 18:17:54 +00:00
Don Ho
d23e8c74c5 [BUG_FIXED] Fix the bug while changing the language list in Style Configurator, the "Save and close" button is enabled.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@616 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-02-21 02:05:46 +00:00
Don Ho
689d434a9f [OPTIMIZE] (Author : Sune Marcher) Rewrite of menuID2LangType function.
[UPDATE] Refactor Notepad_plus.cpp (in progress).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@608 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-02-04 01:22:41 +00:00
Don Ho
0c490dc55a [ENHANCE] Thanks to Jocelyn Legault (precompiled headers), the build time is sped up.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@529 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-09-04 00:10:01 +00:00
Don Ho
e8f584c764 [BUG_FIXED] Fix a crash issue due to tip feature (to check).
[NEW_FEATURE] Add import plugins feature (load on the fly).
[NEW_FEATURE] Add import theme (stylers.xml) feature.
[ENHANCE] Prevent crash from some uncertain context.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@519 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-08-11 23:55:57 +00:00
Don Ho
dd70030c5c [BUG_FIXED] Fix a crash issue while launch Fin in file (regression since the last svn commit).
[BUG_FIXED] Fix a crash issue while deleting the last line.
[BUG_FIXED] Fix a bug of plugin message NPPM_GETPLUGINSCONFIGDIR (regression since the last svn commit).
[NEW_FEATURE] User can define different size of TAB by each language (in progress).
[NEW_FEATURE] Add new plugin notification NPPN_DOCORDERCHANGED to notify plugins that document order is changed.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@518 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-08-08 13:30:13 +00:00
Don Ho
3464682ef6 [ENHANCE] Enhance to avoid eventual crash (TCHAR * to generic_string).
[BUG_FIXED] Fix a crash bug due to unstability of FTP_synchronize plugin (enhance DockingCont.cpp).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@514 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-08-03 00:37:30 +00:00
Don Ho
f71ca5e4d8 [BUG_FIXED] Fix a crash issue (Unicode binary) while close Notepad++ with an RC file opened under Chinese Xp.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@512 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-07-14 01:42:09 +00:00
Thell Fowler
e72b17ed9d [BUG_FIXED] - Modified the Styler Configurator user extension handler
- Changes to the user ext field where not fetting saved because the never propogated to the npp parameters due to alterations in the array assignments when the theme selector was added.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@480 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-05-27 15:42:27 +00:00
Thell Fowler
342fa5b95a [CLEAN] Remove un-needed _themeName check that caused bug in Theme Selector list updater.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@468 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-28 16:13:46 +00:00
Don Ho
4dd3b257e0 Moved PowerEditor in trunk remotely
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@460 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-04-24 23:34:47 +00:00