プロジェクト

全般

プロフィール

バグ #2179

SdoServiceAdmin::getServiceProviderProfiles()の処理がおかしい

n-andoほぼ13年前に追加. 約12年前に更新.

ステータス:
終了
優先度:
通常
担当者:
対象バージョン:
-
開始日:
2011/07/01
期日:
進捗率:

100%

予定工数:

説明

栗原です。

SdoServiceAdmin::getServiceProviderProfiles()の処理についての確認です。

SdoServiceAdmin::getServiceProviderProfiles()では、以下のような実装になって
おりますが、prof._retn();をリターンしてますので、prof2は必要なくて、profに
push_backするべきでは?と思うのですが、いかがでしょうか?

SDOPackage::ServiceProfileList* SdoServiceAdmin::getServiceProviderProfiles()
 {
   SDOPackage::ServiceProfileList_var prof
     = new SDOPackage::ServiceProfileList();
   SDOPackage::ServiceProfileList prof2;
   Guard guard(m_provider_mutex);
   for (size_t i(0); i < m_providers.size(); ++i)
     {
       CORBA_SeqUtil::push_back(prof2, m_providers[i]->getProfile());
     }
   return prof._retn();
 }

関係しているリビジョン

リビジョン 2328 (差分)
n-ando約12年前に追加

[compat,header/impl,bugfix/format] A bug in SdoServiceAdmin::getServiceProviderProfiles() has been fixed. CORBA_SeqUtil's indentations have been modified. refs #2179

リビジョン 2328 (差分)
n-ando約12年前に追加

[compat,header/impl,bugfix/format] A bug in SdoServiceAdmin::getServiceProviderProfiles() has been fixed. CORBA_SeqUtil's indentations have been modified. refs #2179

履歴

#1 n-ando約12年前に更新

  • ステータス新規 から 終了 に変更
  • 進捗率0 から 100 に変更

r2328で修正。

他の形式にエクスポート: Atom PDF