diff --git a/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp b/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp index 94345600cf53fd..59bccf11faa481 100644 --- a/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp +++ b/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp @@ -1,7 +1,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters; using namespace chip::app::Clusters::ModeSelect; diff --git a/examples/all-clusters-app/all-clusters-common/src/static-supported-temperature-levels.cpp b/examples/all-clusters-app/all-clusters-common/src/static-supported-temperature-levels.cpp index 6019006c2a2868..5ed8a0c40f5e89 100644 --- a/examples/all-clusters-app/all-clusters-common/src/static-supported-temperature-levels.cpp +++ b/examples/all-clusters-app/all-clusters-common/src/static-supported-temperature-levels.cpp @@ -19,7 +19,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters; using namespace chip::app::Clusters::TemperatureControl; diff --git a/examples/chef/common/clusters/audio-output/AudioOutputManager.cpp b/examples/chef/common/clusters/audio-output/AudioOutputManager.cpp index 06a123a6549679..65df8db9ff0bb2 100644 --- a/examples/chef/common/clusters/audio-output/AudioOutputManager.cpp +++ b/examples/chef/common/clusters/audio-output/AudioOutputManager.cpp @@ -20,7 +20,6 @@ #ifdef MATTER_DM_PLUGIN_AUDIO_OUTPUT_SERVER #include "AudioOutputManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::AudioOutput; using chip::app::AttributeValueEncoder; diff --git a/examples/chef/common/clusters/media-input/MediaInputManager.cpp b/examples/chef/common/clusters/media-input/MediaInputManager.cpp index 53cc22cd65cce8..4d11d9934ae8ab 100644 --- a/examples/chef/common/clusters/media-input/MediaInputManager.cpp +++ b/examples/chef/common/clusters/media-input/MediaInputManager.cpp @@ -22,7 +22,6 @@ #ifdef MATTER_DM_PLUGIN_MEDIA_INPUT_SERVER #include "MediaInputManager.h" -using namespace std; using namespace chip; using namespace chip::app::Clusters::MediaInput; using Protocols::InteractionModel::Status; diff --git a/examples/chef/common/clusters/media-playback/MediaPlaybackManager.cpp b/examples/chef/common/clusters/media-playback/MediaPlaybackManager.cpp index db3af119c5b286..cf8bcda33cd757 100644 --- a/examples/chef/common/clusters/media-playback/MediaPlaybackManager.cpp +++ b/examples/chef/common/clusters/media-playback/MediaPlaybackManager.cpp @@ -22,7 +22,6 @@ #ifdef MATTER_DM_PLUGIN_MEDIA_PLAYBACK_SERVER #include "MediaPlaybackManager.h" -using namespace std; using namespace chip; using namespace chip::app; using namespace chip::app::DataModel; diff --git a/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.cpp b/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.cpp index be20f92f53a8fe..1f2dcdedb048e6 100644 --- a/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.cpp +++ b/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.cpp @@ -23,7 +23,6 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::TargetNavigator; diff --git a/examples/placeholder/linux/static-supported-modes-manager.cpp b/examples/placeholder/linux/static-supported-modes-manager.cpp index 94345600cf53fd..59bccf11faa481 100644 --- a/examples/placeholder/linux/static-supported-modes-manager.cpp +++ b/examples/placeholder/linux/static-supported-modes-manager.cpp @@ -1,7 +1,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters; using namespace chip::app::Clusters::ModeSelect; diff --git a/examples/placeholder/linux/static-supported-temperature-levels.cpp b/examples/placeholder/linux/static-supported-temperature-levels.cpp index de8933fdf649ea..4b65317e8cc58f 100644 --- a/examples/placeholder/linux/static-supported-temperature-levels.cpp +++ b/examples/placeholder/linux/static-supported-temperature-levels.cpp @@ -19,7 +19,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters; using namespace chip::app::Clusters::TemperatureControl; diff --git a/examples/refrigerator-app/refrigerator-common/src/static-supported-temperature-levels.cpp b/examples/refrigerator-app/refrigerator-common/src/static-supported-temperature-levels.cpp index 8678e5f3d009d0..a7198c0cf0a3b6 100644 --- a/examples/refrigerator-app/refrigerator-common/src/static-supported-temperature-levels.cpp +++ b/examples/refrigerator-app/refrigerator-common/src/static-supported-temperature-levels.cpp @@ -19,7 +19,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters; using namespace chip::app::Clusters::TemperatureControl; diff --git a/examples/tv-app/android/include/account-login/AccountLoginManager.cpp b/examples/tv-app/android/include/account-login/AccountLoginManager.cpp index 2aa0b313b0eda1..48d443eb496ffb 100644 --- a/examples/tv-app/android/include/account-login/AccountLoginManager.cpp +++ b/examples/tv-app/android/include/account-login/AccountLoginManager.cpp @@ -23,7 +23,6 @@ #include #include -using namespace std; using namespace chip::app::Clusters; using namespace chip::app::Clusters::AccountLogin; using Status = chip::Protocols::InteractionModel::Status; diff --git a/examples/tv-app/android/include/application-basic/ApplicationBasicManager.cpp b/examples/tv-app/android/include/application-basic/ApplicationBasicManager.cpp index d94177155f4fde..80e11460bd88e3 100644 --- a/examples/tv-app/android/include/application-basic/ApplicationBasicManager.cpp +++ b/examples/tv-app/android/include/application-basic/ApplicationBasicManager.cpp @@ -18,7 +18,6 @@ #include "ApplicationBasicManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::ApplicationBasic; diff --git a/examples/tv-app/android/include/audio-output/AudioOutputManager.cpp b/examples/tv-app/android/include/audio-output/AudioOutputManager.cpp index 1b8a6a36c84912..77a1e2111b44be 100644 --- a/examples/tv-app/android/include/audio-output/AudioOutputManager.cpp +++ b/examples/tv-app/android/include/audio-output/AudioOutputManager.cpp @@ -18,7 +18,6 @@ #include "AudioOutputManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::AudioOutput; diff --git a/examples/tv-app/android/include/content-app-observer/ContentAppObserver.cpp b/examples/tv-app/android/include/content-app-observer/ContentAppObserver.cpp index 7145ba24305f21..158da869c07b67 100644 --- a/examples/tv-app/android/include/content-app-observer/ContentAppObserver.cpp +++ b/examples/tv-app/android/include/content-app-observer/ContentAppObserver.cpp @@ -20,7 +20,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters::ContentAppObserver; diff --git a/examples/tv-app/android/include/content-control/ContentController.cpp b/examples/tv-app/android/include/content-control/ContentController.cpp index edf2550c489d62..4883d4f78086e8 100644 --- a/examples/tv-app/android/include/content-control/ContentController.cpp +++ b/examples/tv-app/android/include/content-control/ContentController.cpp @@ -19,7 +19,6 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::DataModel; diff --git a/examples/tv-app/android/include/content-launcher/AppContentLauncherManager.cpp b/examples/tv-app/android/include/content-launcher/AppContentLauncherManager.cpp index 671daab4b239c4..adc156eeb19b84 100644 --- a/examples/tv-app/android/include/content-launcher/AppContentLauncherManager.cpp +++ b/examples/tv-app/android/include/content-launcher/AppContentLauncherManager.cpp @@ -24,7 +24,6 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::DataModel; diff --git a/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp b/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp index 9f5c2e5d6691ce..9e07e348e0fe3b 100644 --- a/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp +++ b/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp @@ -28,7 +28,6 @@ #include -using namespace std; using namespace chip; using namespace chip::app; using namespace chip::app::DataModel; diff --git a/examples/tv-app/android/include/messages/MessagesManager.cpp b/examples/tv-app/android/include/messages/MessagesManager.cpp index 00848c67312751..a4fdaa53291394 100644 --- a/examples/tv-app/android/include/messages/MessagesManager.cpp +++ b/examples/tv-app/android/include/messages/MessagesManager.cpp @@ -17,7 +17,6 @@ #include "MessagesManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::Messages; diff --git a/examples/tv-app/android/include/target-navigator/TargetNavigatorManager.cpp b/examples/tv-app/android/include/target-navigator/TargetNavigatorManager.cpp index fe7884227880df..31ae5daedb215d 100644 --- a/examples/tv-app/android/include/target-navigator/TargetNavigatorManager.cpp +++ b/examples/tv-app/android/include/target-navigator/TargetNavigatorManager.cpp @@ -23,7 +23,6 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::TargetNavigator; using ContentAppAttributeDelegate = chip::AppPlatform::ContentAppAttributeDelegate; diff --git a/examples/tv-app/android/java/ContentLauncherManager.cpp b/examples/tv-app/android/java/ContentLauncherManager.cpp index 9aacc2d6e56b22..b1c3a8cac64a4b 100644 --- a/examples/tv-app/android/java/ContentLauncherManager.cpp +++ b/examples/tv-app/android/java/ContentLauncherManager.cpp @@ -27,7 +27,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::DataModel; using namespace chip::app::Clusters::ContentLauncher; diff --git a/examples/tv-app/android/java/application-launcher/ApplicationLauncherManager.cpp b/examples/tv-app/android/java/application-launcher/ApplicationLauncherManager.cpp index 8ee91292a5e76a..9267a086c64c56 100644 --- a/examples/tv-app/android/java/application-launcher/ApplicationLauncherManager.cpp +++ b/examples/tv-app/android/java/application-launcher/ApplicationLauncherManager.cpp @@ -27,7 +27,6 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::Clusters::ApplicationLauncher; diff --git a/examples/tv-app/tv-common/clusters/account-login/AccountLoginManager.cpp b/examples/tv-app/tv-common/clusters/account-login/AccountLoginManager.cpp index 9264553c14d002..21c96255ea6f37 100644 --- a/examples/tv-app/tv-common/clusters/account-login/AccountLoginManager.cpp +++ b/examples/tv-app/tv-common/clusters/account-login/AccountLoginManager.cpp @@ -21,7 +21,6 @@ #include #include -using namespace std; using namespace chip::app::Clusters::AccountLogin; AccountLoginManager::AccountLoginManager(const char * setupPin) @@ -32,8 +31,8 @@ AccountLoginManager::AccountLoginManager(const char * setupPin) bool AccountLoginManager::HandleLogin(const CharSpan & tempAccountIdentifier, const CharSpan & setupPin, const chip::Optional & nodeId) { - string tempAccountIdentifierString(tempAccountIdentifier.data(), tempAccountIdentifier.size()); - string setupPinString(setupPin.data(), setupPin.size()); + std::string tempAccountIdentifierString(tempAccountIdentifier.data(), tempAccountIdentifier.size()); + std::string setupPinString(setupPin.data(), setupPin.size()); ChipLogProgress(Zcl, "temporary account id: %s", tempAccountIdentifierString.c_str()); ChipLogProgress(Zcl, "setup pin %s", setupPinString.c_str()); @@ -57,7 +56,7 @@ bool AccountLoginManager::HandleLogout(const chip::Optional & node void AccountLoginManager::HandleGetSetupPin(CommandResponseHelper & helper, const CharSpan & tempAccountIdentifier) { - string tempAccountIdentifierString(tempAccountIdentifier.data(), tempAccountIdentifier.size()); + std::string tempAccountIdentifierString(tempAccountIdentifier.data(), tempAccountIdentifier.size()); GetSetupPINResponse response; ChipLogProgress(Zcl, "temporary account id: %s returning pin: %s", tempAccountIdentifierString.c_str(), mSetupPin); diff --git a/examples/tv-app/tv-common/clusters/application-basic/ApplicationBasicManager.cpp b/examples/tv-app/tv-common/clusters/application-basic/ApplicationBasicManager.cpp index d94177155f4fde..80e11460bd88e3 100644 --- a/examples/tv-app/tv-common/clusters/application-basic/ApplicationBasicManager.cpp +++ b/examples/tv-app/tv-common/clusters/application-basic/ApplicationBasicManager.cpp @@ -18,7 +18,6 @@ #include "ApplicationBasicManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::ApplicationBasic; diff --git a/examples/tv-app/tv-common/clusters/application-launcher/ApplicationLauncherManager.cpp b/examples/tv-app/tv-common/clusters/application-launcher/ApplicationLauncherManager.cpp index c915856f48fd4d..3a4960970f06ba 100644 --- a/examples/tv-app/tv-common/clusters/application-launcher/ApplicationLauncherManager.cpp +++ b/examples/tv-app/tv-common/clusters/application-launcher/ApplicationLauncherManager.cpp @@ -18,7 +18,6 @@ #include "ApplicationLauncherManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::Clusters::ApplicationLauncher; diff --git a/examples/tv-app/tv-common/clusters/audio-output/AudioOutputManager.cpp b/examples/tv-app/tv-common/clusters/audio-output/AudioOutputManager.cpp index 1b8a6a36c84912..77a1e2111b44be 100644 --- a/examples/tv-app/tv-common/clusters/audio-output/AudioOutputManager.cpp +++ b/examples/tv-app/tv-common/clusters/audio-output/AudioOutputManager.cpp @@ -18,7 +18,6 @@ #include "AudioOutputManager.h" -using namespace std; using namespace chip::app; using namespace chip::app::Clusters::AudioOutput; diff --git a/examples/tv-app/tv-common/clusters/content-app-observer/ContentAppObserver.cpp b/examples/tv-app/tv-common/clusters/content-app-observer/ContentAppObserver.cpp index a6010a54b0a0f5..9c42fe3f11a525 100644 --- a/examples/tv-app/tv-common/clusters/content-app-observer/ContentAppObserver.cpp +++ b/examples/tv-app/tv-common/clusters/content-app-observer/ContentAppObserver.cpp @@ -20,7 +20,6 @@ #include #include -using namespace std; using namespace chip; using namespace chip::app::Clusters::ContentAppObserver; diff --git a/examples/tv-app/tv-common/clusters/content-control/ContentController.cpp b/examples/tv-app/tv-common/clusters/content-control/ContentController.cpp index 19317a71b7cfaf..352b204bab65cb 100644 --- a/examples/tv-app/tv-common/clusters/content-control/ContentController.cpp +++ b/examples/tv-app/tv-common/clusters/content-control/ContentController.cpp @@ -19,7 +19,6 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::DataModel; diff --git a/examples/tv-app/tv-common/clusters/content-launcher/ContentLauncherManager.cpp b/examples/tv-app/tv-common/clusters/content-launcher/ContentLauncherManager.cpp index f0519619c2052a..74dd6de8c8071a 100644 --- a/examples/tv-app/tv-common/clusters/content-launcher/ContentLauncherManager.cpp +++ b/examples/tv-app/tv-common/clusters/content-launcher/ContentLauncherManager.cpp @@ -23,13 +23,12 @@ #include #include -using namespace std; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::DataModel; using namespace chip::app::Clusters::ContentLauncher; -ContentLauncherManager::ContentLauncherManager(list acceptHeaderList, uint32_t supportedStreamingProtocols) +ContentLauncherManager::ContentLauncherManager(std::list acceptHeaderList, uint32_t supportedStreamingProtocols) { mAcceptHeaderList = acceptHeaderList; mSupportedStreamingProtocols = supportedStreamingProtocols; @@ -103,7 +102,7 @@ void ContentLauncherManager::HandleLaunchContent(CommandResponseHelper #endif // MATTER_DM_PLUGIN_ON_OFF -using namespace std; using namespace chip; using namespace chip::app; using namespace chip::app::Clusters; diff --git a/src/app/clusters/refrigerator-alarm-server/refrigerator-alarm-server.cpp b/src/app/clusters/refrigerator-alarm-server/refrigerator-alarm-server.cpp index 620e113177c1c7..751bd768cdf8ee 100644 --- a/src/app/clusters/refrigerator-alarm-server/refrigerator-alarm-server.cpp +++ b/src/app/clusters/refrigerator-alarm-server/refrigerator-alarm-server.cpp @@ -32,7 +32,6 @@ using namespace chip::app::Clusters::RefrigeratorAlarm::Attributes; using namespace chip::DeviceLayer; using chip::Protocols::InteractionModel::Status; -using namespace std; RefrigeratorAlarmServer RefrigeratorAlarmServer::instance; RefrigeratorAlarmServer & RefrigeratorAlarmServer::Instance() diff --git a/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp b/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp index b8d885599245a4..4447ad1cc0f210 100644 --- a/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp +++ b/src/app/clusters/resource-monitoring-server/resource-monitoring-server.cpp @@ -35,7 +35,6 @@ #include // using namespace std; -using namespace chip; using namespace chip::app; using namespace chip::app::Clusters; using namespace chip::app::Clusters::ResourceMonitoring; diff --git a/src/lib/dnssd/minimal_mdns/tests/FuzzPacketParsingPW.cpp b/src/lib/dnssd/minimal_mdns/tests/FuzzPacketParsingPW.cpp index aec550b26e026a..0ea5de55013994 100644 --- a/src/lib/dnssd/minimal_mdns/tests/FuzzPacketParsingPW.cpp +++ b/src/lib/dnssd/minimal_mdns/tests/FuzzPacketParsingPW.cpp @@ -10,7 +10,6 @@ namespace { using namespace fuzztest; -using namespace std; using namespace chip; using namespace mdns::Minimal; @@ -65,16 +64,16 @@ void PacketParserFuzz(const std::vector & bytes) mdns::Minimal::ParsePacket(packet, &delegate); } -FUZZ_TEST(MinimalmDNS, PacketParserFuzz).WithDomains(Arbitrary>()); +FUZZ_TEST(MinimalmDNS, PacketParserFuzz).WithDomains(Arbitrary>()); class TxtRecordAccumulator : public TxtRecordDelegate { public: - using DataType = vector>; + using DataType = std::vector>; void OnRecord(const BytesRange & name, const BytesRange & value) override { - mData.push_back(make_pair(AsString(name), AsString(value))); + mData.push_back(std::make_pair(AsString(name), AsString(value))); } DataType & Data() { return mData; } @@ -83,9 +82,9 @@ class TxtRecordAccumulator : public TxtRecordDelegate private: DataType mData; - static string AsString(const BytesRange & range) + static std::string AsString(const BytesRange & range) { - return string(reinterpret_cast(range.Start()), reinterpret_cast(range.End())); + return std::string(reinterpret_cast(range.Start()), reinterpret_cast(range.End())); } }; diff --git a/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp b/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp index ea85f74d2be11a..6b626be3631d33 100644 --- a/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp +++ b/src/lib/dnssd/minimal_mdns/tests/TestAdvertiser.cpp @@ -38,7 +38,6 @@ namespace { -using namespace std; using namespace chip; using namespace chip::Dnssd; using namespace mdns::Minimal; diff --git a/src/lib/dnssd/minimal_mdns/tests/TestRecordData.cpp b/src/lib/dnssd/minimal_mdns/tests/TestRecordData.cpp index dcd48959be01ea..ae9e37e42ad960 100644 --- a/src/lib/dnssd/minimal_mdns/tests/TestRecordData.cpp +++ b/src/lib/dnssd/minimal_mdns/tests/TestRecordData.cpp @@ -26,7 +26,6 @@ namespace { -using namespace std; using namespace chip; using namespace mdns::Minimal; @@ -205,11 +204,11 @@ TEST(TestRecordData, PtrRecordComplexParsing) class TxtRecordAccumulator : public TxtRecordDelegate { public: - using DataType = vector>; + using DataType = std::vector>; void OnRecord(const BytesRange & name, const BytesRange & value) override { - mData.push_back(make_pair(AsString(name), AsString(value))); + mData.push_back(std::make_pair(AsString(name), AsString(value))); } DataType & Data() { return mData; } @@ -218,9 +217,9 @@ class TxtRecordAccumulator : public TxtRecordDelegate private: DataType mData; - static string AsString(const BytesRange & range) + static std::string AsString(const BytesRange & range) { - return string(reinterpret_cast(range.Start()), reinterpret_cast(range.End())); + return std::string(reinterpret_cast(range.Start()), reinterpret_cast(range.End())); } }; @@ -237,9 +236,9 @@ TEST(TestRecordData, TxtRecord) EXPECT_TRUE(ParseTxtRecord(BytesRange(record, record + sizeof(record)), &accumulator)); EXPECT_EQ(accumulator.Data().size(), 4u); - EXPECT_EQ(accumulator.Data()[0], (make_pair("some", ""))); - EXPECT_EQ(accumulator.Data()[1], (make_pair("foo", "bar"))); - EXPECT_EQ(accumulator.Data()[2], (make_pair("x", "y=z"))); - EXPECT_EQ(accumulator.Data()[3], (make_pair("a", ""))); + EXPECT_EQ(accumulator.Data()[0], (std::make_pair("some", ""))); + EXPECT_EQ(accumulator.Data()[1], (std::make_pair("foo", "bar"))); + EXPECT_EQ(accumulator.Data()[2], (std::make_pair("x", "y=z"))); + EXPECT_EQ(accumulator.Data()[3], (std::make_pair("a", ""))); } } // namespace diff --git a/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp b/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp index abfceb52080f13..c08b6c82b84b8c 100644 --- a/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp +++ b/src/lib/dnssd/minimal_mdns/tests/TestResponseSender.cpp @@ -34,7 +34,6 @@ namespace { -using namespace std; using namespace chip; using namespace mdns::Minimal; using namespace mdns::Minimal::test; diff --git a/src/platform/Tizen/SystemInfo.cpp b/src/platform/Tizen/SystemInfo.cpp index e9ac7d7b1b1675..dd4f9f83ec8d0a 100644 --- a/src/platform/Tizen/SystemInfo.cpp +++ b/src/platform/Tizen/SystemInfo.cpp @@ -26,8 +26,6 @@ #include "ErrorUtils.h" -using namespace std; - namespace chip { namespace DeviceLayer { namespace Internal { diff --git a/src/platform/stm32/CHIPMem-Platform.cpp b/src/platform/stm32/CHIPMem-Platform.cpp index b9bf90f429f444..cbf52cfde94a84 100644 --- a/src/platform/stm32/CHIPMem-Platform.cpp +++ b/src/platform/stm32/CHIPMem-Platform.cpp @@ -67,8 +67,6 @@ extern "C" void memMonitoringTrackFree(void * ptr, size_t size); #define USE_FREERTOS -using namespace std; - // Define the new operator for C++ to use the freeRTOS memory management // functions. // diff --git a/src/setup_payload/tests/TestQRCode.cpp b/src/setup_payload/tests/TestQRCode.cpp index e5d68227c2956e..25cb4cea8089f7 100644 --- a/src/setup_payload/tests/TestQRCode.cpp +++ b/src/setup_payload/tests/TestQRCode.cpp @@ -32,7 +32,6 @@ #include using namespace chip; -using namespace std; namespace { diff --git a/src/setup_payload/tests/TestQRCodeTLV.cpp b/src/setup_payload/tests/TestQRCodeTLV.cpp index 7ea2b974070275..27e7027101ae18 100644 --- a/src/setup_payload/tests/TestQRCodeTLV.cpp +++ b/src/setup_payload/tests/TestQRCodeTLV.cpp @@ -24,7 +24,6 @@ #include using namespace chip; -using namespace std; namespace {