diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-07-03 19:47:31 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:20:29 +0300 |
commit | adde2107d1effebd18358b60bc190c7bd4e5d75b (patch) | |
tree | c32e80f0f03c999ed3738e3331ae45b00a037ee5 /qt/main.cpp | |
parent | 1f30f7f693ac1d66c3cfd66413f6bb78be256479 (diff) |
Removed Platform::ReadPathForFile
Diffstat (limited to 'qt/main.cpp')
-rw-r--r-- | qt/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt/main.cpp b/qt/main.cpp index ea687e25c0..cac41f46be 100644 --- a/qt/main.cpp +++ b/qt/main.cpp @@ -93,7 +93,10 @@ int main(int argc, char *argv[]) buttons << "Accept" << "Decline"; string buffer; - FileReader(GetPlatform().ReadPathForFile("eula.html")).ReadAsString(buffer); + { + ReaderPtr<Reader> reader = GetPlatform().GetReader("eula.html"); + reader.ReadAsString(buffer); + } qt::InfoDialog eulaDialog("MapsWithMe End User Licensing Agreement", buffer.c_str(), NULL, buttons); eulaAccepted = (eulaDialog.exec() == 1); Settings::Set(SETTING_EULA_ACCEPTED, eulaAccepted); |