Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include/AdblockPlus/FileSystem.h

Issue 10518027: Don`t use stat() on Windows, use a Unicode-safe Windows function instead (Closed)
Patch Set: Created May 10, 2013, 3:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/DefaultFileSystem.cpp » ('j') | src/DefaultFileSystem.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/FileSystem.h
===================================================================
--- a/include/AdblockPlus/FileSystem.h
+++ b/include/AdblockPlus/FileSystem.h
@@ -26,16 +26,24 @@
namespace AdblockPlus
{
class FileSystem
{
public:
struct StatResult
{
+ inline StatResult()
Felix Dahlke 2013/05/17 09:18:50 The inline keyword is only necessary for free func
+ {
+ exists = false;
+ isDirectory = false;
+ isFile = false;
+ lastModified = false;
Felix Dahlke 2013/05/17 09:18:50 I think it'd be cleaner to set this to 0, being an
+ }
+
bool exists;
bool isDirectory;
bool isFile;
int64_t lastModified;
};
virtual ~FileSystem() {}
virtual std::tr1::shared_ptr<std::istream>
« no previous file with comments | « no previous file | src/DefaultFileSystem.cpp » ('j') | src/DefaultFileSystem.cpp » ('J')

Powered by Google App Engine
This is Rietveld