Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sylvain Joubert
KWSys
Commits
e52098c9
Commit
e52098c9
authored
19 years ago
by
Mathieu Malaterre
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Need to reset internal structure in case of multiple calls to Load
parent
5c572850
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Directory.cxx
+9
-0
9 additions, 0 deletions
Directory.cxx
Directory.hxx.in
+7
-0
7 additions, 0 deletions
Directory.hxx.in
with
16 additions
and
0 deletions
Directory.cxx
+
9
−
0
View file @
e52098c9
...
...
@@ -76,6 +76,13 @@ const char* Directory::GetPath() const
return
this
->
Internal
->
Path
.
c_str
();
}
//----------------------------------------------------------------------------
void
Directory
::
Clear
()
{
this
->
Internal
->
Path
.
clear
();
this
->
Internal
->
Files
.
clear
();
}
}
// namespace KWSYS_NAMESPACE
// First microsoft compilers
...
...
@@ -96,6 +103,7 @@ namespace KWSYS_NAMESPACE
bool
Directory
::
Load
(
const
char
*
name
)
{
this
->
Clear
();
#if _MSC_VER < 1300
long
srchHandle
;
#else
...
...
@@ -148,6 +156,7 @@ namespace KWSYS_NAMESPACE
bool
Directory
::
Load
(
const
char
*
name
)
{
this
->
Clear
();
DIR
*
dir
=
opendir
(
name
);
if
(
!
dir
)
...
...
This diff is collapsed.
Click to expand it.
Directory.hxx.in
+
7
−
0
View file @
e52098c9
...
...
@@ -57,6 +57,13 @@ public:
*/
const char* GetPath() const;
protected:
/**
* Clear the internal structure. Used internally at beginning of Load(...) to clear
* the cache.
*/
void Clear();
private:
// Private implementation details.
DirectoryInternals* Internal;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment