mirror of
https://github.com/vgough/encfs.git
synced 2025-06-26 15:01:57 +02:00
separate RenameOp definition from implementation to avoid gcc 4.3 errors
git-svn-id: http://encfs.googlecode.com/svn/trunk@31 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
parent
ff1c0828d8
commit
9bee8d7355
@ -190,7 +190,18 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
~RenameOp()
|
~RenameOp();
|
||||||
|
|
||||||
|
operator bool () const
|
||||||
|
{
|
||||||
|
return renameList;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool apply();
|
||||||
|
void undo();
|
||||||
|
};
|
||||||
|
|
||||||
|
RenameOp::~RenameOp()
|
||||||
{
|
{
|
||||||
if(renameList)
|
if(renameList)
|
||||||
{
|
{
|
||||||
@ -205,12 +216,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
operator bool () const
|
bool RenameOp::apply()
|
||||||
{
|
|
||||||
return renameList;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool apply()
|
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -246,7 +252,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void undo()
|
void RenameOp::undo()
|
||||||
{
|
{
|
||||||
rDebug("in undoRename");
|
rDebug("in undoRename");
|
||||||
|
|
||||||
@ -283,7 +289,6 @@ public:
|
|||||||
|
|
||||||
rWarning("Undo rename count: %i", undoCount);
|
rWarning("Undo rename count: %i", undoCount);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
DirNode::DirNode(EncFS_Context *_ctx,
|
DirNode::DirNode(EncFS_Context *_ctx,
|
||||||
const string &sourceDir, const shared_ptr<Config> &_config)
|
const string &sourceDir, const shared_ptr<Config> &_config)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user