Mercurial > hg > orthanc-stone
diff Samples/Sdl/TrackerSample.cpp @ 818:e42b491f1fb2
Removed typedefs to shared_ptr by making them explicit. Removed using namespace
directives to make usage more explicit, too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 May 2019 10:51:28 +0200 |
parents | 07adcffba38c |
children | 0aff28f15ea2 |
line wrap: on
line diff
--- a/Samples/Sdl/TrackerSample.cpp Wed May 29 08:36:13 2019 +0200 +++ b/Samples/Sdl/TrackerSample.cpp Wed May 29 10:51:28 2019 +0200 @@ -48,18 +48,11 @@ */ - -using namespace Orthanc; -using namespace OrthancStone; - - - - -boost::weak_ptr<TrackerSampleApp> g_app; +boost::weak_ptr<OrthancStone::TrackerSampleApp> g_app; void TrackerSample_SetInfoDisplayMessage(std::string key, std::string value) { - boost::shared_ptr<TrackerSampleApp> app = g_app.lock(); + boost::shared_ptr<OrthancStone::TrackerSampleApp> app = g_app.lock(); if (app) { app->SetInfoDisplayMessage(key, value); @@ -73,6 +66,8 @@ **/ int main(int argc, char* argv[]) { + using namespace OrthancStone; + StoneInitialize(); Orthanc::Logging::EnableInfoLevel(true); // Orthanc::Logging::EnableTraceLevel(true);