mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 22:01:45 +08:00
General refactoring
This commit is contained in:
@ -70,7 +70,13 @@ DataTime CFItem::getDataTime() const
|
||||
|
||||
void CFItem::setDataTime(const DataTime &value)
|
||||
{
|
||||
if (!dirEntry.use_count())
|
||||
return;
|
||||
|
||||
if (dirEntry.lock()->getStgType() != StgStream && dirEntry.lock()->getStgType() != StgRoot)
|
||||
dirEntry.lock()->setModifyDate(value.getUINT64());
|
||||
else
|
||||
throw CFException(L"Modify Date can only be set on storage entries");
|
||||
}
|
||||
|
||||
GUID CFItem::getStorageCLSID() const
|
||||
|
||||
Reference in New Issue
Block a user