Skip to content

Commit

Permalink
Upgrade Slice library to use shared_ptr (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored Jan 17, 2024
1 parent e8f89de commit cfc8e6c
Show file tree
Hide file tree
Showing 38 changed files with 2,724 additions and 2,781 deletions.
2 changes: 1 addition & 1 deletion cpp/src/Slice/FileTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Slice::FileTracker::instance()
{
if(!Instance)
{
Instance = new FileTracker();
Instance = make_shared<FileTracker>();
}
return Instance;
}
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/Slice/FileTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define FILE_TRACKER_H

#include <IceUtil/Shared.h>
#include <IceUtil/Handle.h>
#include <Slice/Parser.h>

namespace Slice
Expand All @@ -32,9 +33,8 @@ class FileException : public ::IceUtil::Exception
};

class FileTracker;
typedef IceUtil::Handle<FileTracker> FileTrackerPtr;

class FileTracker : public ::IceUtil::SimpleShared
using FileTrackerPtr = std::shared_ptr<FileTracker>;
class FileTracker
{
public:

Expand Down
Loading

0 comments on commit cfc8e6c

Please sign in to comment.