File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
// Name: link.cpp
3
3
// Purpose: Implementation of class wex::link and stc::link... methods
4
4
// Author: Anton van Wezenbeek
5
- // Copyright: (c) 2011-2024 Anton van Wezenbeek
5
+ // Copyright: (c) 2011-2025 Anton van Wezenbeek
6
6
// //////////////////////////////////////////////////////////////////////////////
7
7
8
8
#include < boost/algorithm/string.hpp>
20
20
// failed to determine attributes for the specified path: File name too long
21
21
std::string get_current_line_text (wex::link* link, wex::factory::stc* stc)
22
22
{
23
- const std::string& line (stc->GetCurLine ().ToStdString ());
23
+ // Do not make a reference.
24
+ const std::string line (stc->GetCurLine ());
24
25
25
26
if (const size_t mp (500 ); line.size () >= mp)
26
27
{
@@ -147,7 +148,7 @@ bool wex::stc::link_open(link_t mode, std::string* link)
147
148
this ));
148
149
!mime.string ().empty ())
149
150
{
150
- found = (!mode[LINK_CHECK]) ? mime.open_mime (): true ;
151
+ found = (!mode[LINK_CHECK]) ? mime.open_mime () : true ;
151
152
}
152
153
}
153
154
}
You can’t perform that action at this time.
0 commit comments