Warning fixes

This commit is contained in:
Alex Zolotarev 2011-10-06 13:29:21 +03:00 committed by Alex Zolotarev
parent 59f2d9534a
commit b5f2f0d196
3 changed files with 24 additions and 23 deletions

View file

@ -17,7 +17,7 @@ namespace search
class CategoriesHolder;
class KeywordMatcher;
namespace impl { class IntermediateResult; class FeatureLoader; class BestNameFinder; }
namespace impl { class IntermediateResult; struct FeatureLoader; class BestNameFinder; }
class Query
{

View file

@ -21,28 +21,28 @@ namespace storage
{
const int TIndex::INVALID = -1;
static string ErrorString(DownloadResultT res)
{
switch (res)
{
case EHttpDownloadCantCreateFile:
return "File can't be created. Probably, you have no disk space available or "
"using read-only file system.";
case EHttpDownloadFailed:
return "Download failed due to missing or poor connection. "
"Please, try again later.";
case EHttpDownloadFileIsLocked:
return "Download can't be finished because file is locked. "
"Please, try again after restarting application.";
case EHttpDownloadFileNotFound:
return "Requested file is absent on the server.";
case EHttpDownloadNoConnectionAvailable:
return "No network connection is available.";
case EHttpDownloadOk:
return "Download finished successfully.";
}
return "Unknown error";
}
// static string ErrorString(DownloadResultT res)
// {
// switch (res)
// {
// case EHttpDownloadCantCreateFile:
// return "File can't be created. Probably, you have no disk space available or "
// "using read-only file system.";
// case EHttpDownloadFailed:
// return "Download failed due to missing or poor connection. "
// "Please, try again later.";
// case EHttpDownloadFileIsLocked:
// return "Download can't be finished because file is locked. "
// "Please, try again after restarting application.";
// case EHttpDownloadFileNotFound:
// return "Requested file is absent on the server.";
// case EHttpDownloadNoConnectionAvailable:
// return "No network connection is available.";
// case EHttpDownloadOk:
// return "Download finished successfully.";
// }
// return "Unknown error";
// }
////////////////////////////////////////////////////////////////////////////
void Storage::Init(TAddMapFunction addFunc, TRemoveMapFunction removeFunc, TUpdateRectFunction updateRectFunc, TEnumMapsFunction enumMapsFunc)

View file

@ -18,6 +18,7 @@ namespace yg
class Renderer
{
public:
virtual ~Renderer() {}
struct Params
{